/* =========================================================
   4CUS — ACCOUNT REGISTER
   Light / Premium / Animated
========================================================= */

.account-register {
    --ar-purple: #7448e7;
    --ar-purple-deep: #5931c6;
    --ar-text: #19191f;
    --ar-muted: #858590;
    --ar-border: #e9e8ed;

    position: relative;
    min-height: 100svh;
    background: #fafafc;
    color: var(--ar-text);
    overflow: hidden;
    isolation: isolate;
}

.account-register *,
.account-register *::before,
.account-register *::after {
    box-sizing: border-box;
}

/* BACKGROUND */

.account-register-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}

.account-register-orb {
    position: absolute;
    width: 550px;
    aspect-ratio: 1;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .35;
}

.account-register .orb-a {
    background: #e3d7ff;
    top: 5%;
    left: -200px;
    animation: arOrb 18s ease-in-out infinite alternate;
}

.account-register .orb-b {
    background: #e8e6ff;
    right: -250px;
    bottom: -200px;
    animation: arOrb 22s ease-in-out infinite alternate-reverse;
}

.account-register-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: .4;
}

.account-register-lines path {
    fill: none;
    stroke: #c9b7ff;
    stroke-width: 1;
    stroke-dasharray: 1800;
    stroke-dashoffset: 1800;
    animation: arDraw 4s 0.3s ease forwards;
}

/* GRID */

.account-register-container {
    position: relative;
    width: min(1240px, calc(100% - 64px));
    min-height: calc(100svh - 100px);
    margin: auto;
    padding: 85px 0 100px;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    align-items: center;
    gap: clamp(45px, 7vw, 110px);
}

/* HERO */

.account-register-hero {
    min-width: 0;
    animation: arEnterLeft 1s cubic-bezier(.2,.8,.2,1) both;
}

.account-register-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ar-purple);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .22em;
    margin-bottom: 26px;
}

.account-register-eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: currentColor;
}

.account-register-hero h1 {
    margin: 0;
    font-size: clamp(40px, 5vw, 78px);
    font-weight: 850;
    line-height: 1.07;
    letter-spacing: -.065em;
    overflow-wrap: anywhere;
}

.account-register-hero h1 span {
    display: block;
}

.account-register-accent {
    color: var(--ar-purple);
}

.account-register-description {
    max-width: 490px;
    margin: 28px 0;
    color: #777783;
    font-size: clamp(15px, 1.4vw, 18px);
    line-height: 1.8;
}

.account-register-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.account-register-feature {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 14px;
    background: #ffffffbb;
    border: 1px solid var(--ar-border);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(12px);
    transition: transform .3s, border-color .3s;
}

.account-register-feature:hover {
    transform: translateY(-4px);
    border-color: #d1bfff;
}

.feature-icon {
    color: var(--ar-purple);
    font-size: 16px;
}

/* FOKI */

.account-register-foki {
    position: relative;
    height: 290px;
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.account-register-foki-glow {
    position: absolute;
    width: 260px;
    height: 180px;
    background: radial-gradient(
        ellipse,
        #c3afff80,
        transparent 70%
    );
    filter: blur(22px);
}

.account-register-foki-image {
    position: relative;
    width: 225px;
    max-height: 265px;
    object-fit: contain;
    animation: arFokiFloat 6s ease-in-out infinite;
    filter: drop-shadow(0 25px 24px #6448a322);
    will-change: transform;
    z-index: 2;
}

.account-register-ring {
    position: absolute;
    border: 1px solid #d6c7f5;
    border-radius: 50%;
}

.account-register .ring-one {
    width: 300px;
    height: 230px;
    transform: rotate(-18deg);
}

.account-register .ring-two {
    width: 380px;
    height: 170px;
    transform: rotate(23deg);
    border-style: dashed;
    opacity: .5;
}

.account-register-floating {
    position: absolute;
    z-index: 3;
    padding: 10px 16px;
    border-radius: 12px;
    background: #ffffffdd;
    border: 1px solid #ffffff;
    box-shadow: 0 12px 35px #54427e18;
    font-weight: 800;
    font-size: 12px;
    color: var(--ar-purple);
    backdrop-filter: blur(14px);
    animation: arFloatTag 5s ease-in-out infinite;
}

.floating-qr {
    top: 45px;
    left: 13%;
}

.floating-pdf {
    right: 10%;
    top: 78px;
    animation-delay: -2s;
}

.floating-web {
    bottom: 26px;
    right: 22%;
    animation-delay: -3s;
}

/* FORM CARD */

.account-register-panel {
    min-width: 0;
    animation: arEnterRight 1s .15s cubic-bezier(.2,.8,.2,1) both;
}

.account-register-card {
    position: relative;
    padding: clamp(26px, 4vw, 48px);
    background: #fffffff2;
    border: 1px solid #ffffff;
    border-radius: 28px;
    box-shadow:
        0 35px 90px #3b2b6010,
        0 5px 22px #34304408;
    backdrop-filter: blur(24px);
}

.account-register-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.account-register-card-label {
    color: var(--ar-purple);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .18em;
}

.account-register-mini-symbol {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: var(--ar-purple);
    background: #f2edff;
    border-radius: 12px;
    font-size: 22px;
    animation: arRotate 16s linear infinite;
}

.account-register-card h2 {
    margin: 0 0 9px;
    font-size: clamp(30px, 3vw, 42px);
    font-weight: 800;
    letter-spacing: -.055em;
}

.account-register-card > p {
    margin: 0 0 30px;
    color: var(--ar-muted);
    font-size: 14px;
    line-height: 1.7;
}

/* FIELDS */

.account-register-field {
    margin-bottom: 20px;
}

.account-register-field > label {
    display: block;
    margin-bottom: 9px;
    font-size: 12px;
    font-weight: 750;
}

.account-register-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.account-register-input-wrap input {
    width: 100%;
    min-width: 0;
    height: 56px;
    padding: 0 48px;
    background: #fafafd;
    border: 1px solid #e9e8f0;
    border-radius: 13px;
    color: #1c1c22;
    font: inherit;
    font-size: 14px;
    outline: none;
    transition:
        background .25s,
        border-color .25s,
        box-shadow .25s,
        transform .25s;
}

.account-register-input-wrap input::placeholder {
    color: #aaaab5;
}

.account-register-input-wrap input:focus {
    background: white;
    border-color: var(--ar-purple);
    box-shadow: 0 0 0 4px #7448e715;
    transform: translateY(-1px);
}

.account-register-input-wrap .input-icon {
    position: absolute;
    left: 18px;
    font-size: 17px;
    color: #aaa3bd;
    z-index: 1;
}

.account-password-toggle {
    position: absolute;
    right: 10px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 0;
    background: transparent;
    color: #888895;
    cursor: pointer;
    font-size: 19px;
}

/* TERMS */

.account-register-terms {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 22px 0;
    cursor: pointer;
    font-size: 12px;
    line-height: 1.7;
    color: #757580;
}

.account-register-terms input {
    accent-color: var(--ar-purple);
    margin-top: 3px;
    flex-shrink: 0;
}

.account-register-terms a {
    color: var(--ar-purple);
    font-weight: 700;
    text-decoration: none;
}

/* SUBMIT */

.account-register-submit {
    width: 100%;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 23px;
    border: 0;
    border-radius: 13px;
    background: var(--ar-purple);
    color: white;
    font: inherit;
    font-size: 14px;
    font-weight: 750;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition:
        transform .3s,
        background .3s,
        box-shadow .3s;
}

.account-register-submit::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        #ffffff2d,
        transparent
    );
    transform: skewX(-25deg);
    transition: left .7s;
}

.account-register-submit:hover::before {
    left: 150%;
}

.account-register-submit:hover {
    background: var(--ar-purple-deep);
    transform: translateY(-3px);
    box-shadow: 0 14px 30px #7448e73d;
}

.account-register-submit:disabled {
    opacity: .7;
    cursor: wait;
}

.submit-arrow {
    font-size: 21px;
    transition: transform .3s;
}

.account-register-submit:hover .submit-arrow {
    transform: translate(3px, -3px);
}

/* BOTTOM */

.account-register-login {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 25px;
    font-size: 13px;
    color: #858590;
}

.account-register-login a {
    text-decoration: none;
    color: var(--ar-purple);
    font-weight: 800;
}

.account-register-divider {
    height: 1px;
    background: #eeedf2;
    margin: 25px 0;
}

.account-register-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #92929c;
    font-size: 11px;
    line-height: 1.7;
}

.note-dot {
    width: 7px;
    height: 7px;
    margin-top: 5px;
    background: #56bb8b;
    border-radius: 50%;
    flex-shrink: 0;
}

.account-register-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 23px;
    color: #aaa6b5;
    font-size: 12px;
}

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

.account-register-message {
    margin-bottom: 18px;
    padding: 12px 15px;
    border-radius: 10px;
    background: #fff2f3;
    color: #b62b45;
    font-size: 12px;
    line-height: 1.6;
}

.account-register-message.is-success {
    background: #effaf4;
    color: #18754e;
}

/* ANIMATIONS */

@keyframes arEnterLeft {
    from {
        opacity: 0;
        transform: translate(-35px, 25px);
    }
    to {
        opacity: 1;
        transform: translate(0, 0);
    }
}

@keyframes arEnterRight {
    from {
        opacity: 0;
        transform: translate(35px, 35px) scale(.97);
    }
    to {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
}

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

@keyframes arFloatTag {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes arOrb {
    to {
        transform: translate(90px, -55px) scale(1.15);
    }
}

@keyframes arDraw {
    to { stroke-dashoffset: 0; }
}

@keyframes arRotate {
    to { transform: rotate(360deg); }
}

/* MOBILE */

@media (max-width: 900px) {

    .account-register-container {
        width: min(580px, calc(100% - 32px));
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 45px 0 70px;
    }

    .account-register-hero {
        text-align: center;
    }

    .account-register-hero h1 {
        font-size: clamp(37px, 8vw, 56px);
    }

    .account-register-description {
        margin: 20px auto;
    }

    .account-register-eyebrow {
        justify-content: center;
    }

    .account-register-features {
        justify-content: center;
    }

    .account-register-foki {
        height: 190px;
        margin-top: 10px;
    }

    .account-register-foki-image {
        width: 145px;
        max-height: 170px;
    }

    .account-register .ring-one {
        width: 220px;
        height: 145px;
    }

    .account-register .ring-two {
        width: 260px;
        height: 105px;
    }

    .floating-qr { left: 17%; top: 15px; }
    .floating-pdf { right: 15%; top: 45px; }
    .floating-web { right: 20%; bottom: 7px; }
}

@media (max-width: 480px) {

    .account-register-container {
        width: calc(100% - 24px);
        padding-top: 30px;
    }

    .account-register-card {
        padding: 25px 20px;
        border-radius: 21px;
    }

    .account-register-feature {
        font-size: 10px;
        padding: 9px 11px;
    }

    .account-register-hero h1 {
        letter-spacing: -.04em;
    }

    .account-register-description {
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .account-register *,
    .account-register *::before,
    .account-register *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
