/*
|--------------------------------------------------------------------------
| 4CUS — ACCOUNT AUTH UI
|--------------------------------------------------------------------------
| Light / Premium / Responsive / Animated
|--------------------------------------------------------------------------
*/

.ca-page {
    --ca-purple: #7448e7;
    --ca-text: #1e1c27;
    --ca-muted: #888493;

    position: relative;
    isolation: isolate;
    overflow: hidden;

    min-height: 100svh;
    background: #fafafd;
    color: var(--ca-text);
}

.ca-page *,
.ca-page *::before,
.ca-page *::after {
    box-sizing: border-box;
}

.ca-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}

.ca-orb {
    position: absolute;
    width: 550px;
    height: 550px;
    border-radius: 50%;
    background: #d9c9ff;
    filter: blur(110px);
    opacity: .32;
    animation: caOrb 18s ease-in-out infinite alternate;
}

.ca-orb-one {
    left: -230px;
    top: -180px;
}

.ca-orb-two {
    right: -250px;
    bottom: -220px;
    animation-delay: -8s;
}

.ca-container {
    width: min(1120px, calc(100% - 40px));
    min-height: 85svh;
    margin: auto;
    padding: 80px 0;

    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(40px, 7vw, 100px);
}

.ca-visual {
    min-width: 0;
    animation: caReveal .85s ease both;
}

.ca-eyebrow {
    font-size: 11px;
    letter-spacing: .2em;
    font-weight: 800;
    color: var(--ca-purple);
}

.ca-visual h1 {
    margin: 22px 0;
    font-size: clamp(43px, 5vw, 75px);
    letter-spacing: -.065em;
    line-height: 1.07;
    overflow-wrap: anywhere;
}

.ca-visual > p {
    color: var(--ca-muted);
    max-width: 480px;
    line-height: 1.8;
}

.ca-foki {
    height: 340px;
    display: grid;
    place-items: center;
    position: relative;
}

.ca-foki img {
    width: 230px;
    max-height: 285px;
    object-fit: contain;
    position: relative;
    z-index: 2;
    animation: caFloat 6s ease-in-out infinite;
    filter: drop-shadow(0 22px 25px #6d4bb528);
}

.ca-foki-ring {
    position: absolute;
    width: 315px;
    height: 230px;
    border: 1px solid #d4c3fb;
    border-radius: 50%;
    transform: rotate(-20deg);
}

.ca-float {
    position: absolute;
    z-index: 3;
    background: #ffffffed;
    color: var(--ca-purple);
    border: 1px solid #fff;
    border-radius: 12px;
    padding: 12px 17px;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 15px 30px #51388316;
    animation: caFloat 5s ease-in-out infinite;
}

.ca-float-one { left: 12%; top: 60px; }
.ca-float-two { right: 6%; top: 105px; animation-delay: -2s; }
.ca-float-three { right: 20%; bottom: 30px; animation-delay: -3s; }

.ca-card {
    min-width: 0;
    background: #fffffff0;
    border: 1px solid #fff;
    border-radius: 27px;
    padding: clamp(27px, 4vw, 48px);
    box-shadow: 0 30px 80px #43326413;
    backdrop-filter: blur(20px);
    animation: caReveal .85s .12s both;
}

.ca-card-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #f0eaff;
    color: var(--ca-purple);
    font-size: 25px;
    margin-bottom: 25px;
}

.ca-card h2 {
    margin: 0 0 12px;
    font-size: clamp(30px, 3vw, 43px);
    letter-spacing: -.055em;
}

.ca-card > p {
    margin: 0 0 30px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--ca-muted);
}

#caForm > label,
.ca-challenge label {
    display: block;
    font-size: 12px;
    font-weight: 750;
    margin: 20px 0 10px;
}

#caForm input:not([type="hidden"]) {
    width: 100%;
    min-width: 0;
    height: 56px;
    border-radius: 13px;
    border: 1px solid #e8e5ee;
    background: #faf9fd;
    outline: none;
    padding: 0 17px;
    font: inherit;
    font-size: 14px;
    color: #272330;
    transition:
        background .25s,
        border-color .25s,
        box-shadow .25s,
        transform .25s;
}

#caForm input:focus {
    background: #fff;
    border-color: var(--ca-purple);
    box-shadow: 0 0 0 4px #7448e716;
    transform: translateY(-2px);
}

.ca-submit {
    width: 100%;
    min-height: 57px;
    margin-top: 28px;
    border: 0;
    border-radius: 13px;
    padding: 0 21px;
    color: #fff;
    background: var(--ca-purple);
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: transform .3s, box-shadow .3s, background .3s;
}

.ca-submit:hover:not(:disabled) {
    transform: translateY(-3px);
    background: #6236d4;
    box-shadow: 0 15px 32px #7448e73d;
}

.ca-submit:disabled {
    opacity: .65;
    cursor: wait;
}

.ca-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 15px;
    margin-top: 25px;
}

.ca-links a {
    color: var(--ca-purple);
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
}

.ca-links a:hover {
    text-decoration: underline;
}

.ca-security {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 25px;
    margin-top: 25px;
    border-top: 1px solid #eeebf3;
    color: #a09aaa;
    font-size: 11px;
    line-height: 1.7;
}

.ca-security > span:first-child {
    color: var(--ca-purple);
}

.ca-message {
    margin-top: 20px;
    padding: 13px 15px;
    background: #fff0f3;
    color: #a92847;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.7;
}

.ca-message.is-success {
    background: #eefaef;
    color: #23794f;
}

[hidden] {
    display: none !important;
}

@keyframes caFloat {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

@keyframes caOrb {
    to { transform: translate(85px, -65px) scale(1.13); }
}

@keyframes caReveal {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 800px) {

    .ca-container {
        width: min(560px, calc(100% - 24px));
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 45px 0 70px;
    }

    .ca-visual {
        text-align: center;
    }

    .ca-visual > p {
        margin-left: auto;
        margin-right: auto;
    }

    .ca-visual h1 {
        font-size: clamp(36px, 8vw, 52px);
    }

    .ca-foki {
        height: 190px;
    }

    .ca-foki img {
        width: 145px;
        max-height: 175px;
    }

    .ca-foki-ring {
        width: 210px;
        height: 140px;
    }

    .ca-card {
        border-radius: 21px;
        padding: 29px 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ca-page *,
    .ca-page *::before,
    .ca-page *::after {
        animation: none !important;
        transition: none !important;
    }
}
