:root {
    --pista: #ffd84d;
    --pista-deep: #8a6900;
    --pista-soft: #fff7c7;
    --forest: #0b0b0b;
    --forest-dark: #000000;
    --ink: #151515;
    --muted: #676767;
    --white: #fff;
    --cream: #fffdf5;
    --border: rgba(0, 0, 0, .14);
    --shadow: 0 28px 70px rgba(0, 0, 0, .15);
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--cream);
    font-family: "Manrope", sans-serif;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
}

a {
    color: var(--pista-deep);
    text-decoration: none;
}

a,
button,
input {
    transition: 200ms ease;
    touch-action: manipulation;
}

:focus-visible {
    outline: 3px solid rgba(255, 216, 77, .72);
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    left: 18px;
    top: -60px;
    z-index: 100;
    padding: 10px 15px;
    color: var(--white);
    background: var(--forest);
    border-radius: 0 0 10px 10px;
}

.skip-link:focus {
    top: 0;
}

.auth-shell {
    display: grid;
    width: 100%;
    min-width: 0;
    min-height: 100svh;
    min-height: 100dvh;
    grid-template-columns: minmax(420px, .95fr) minmax(520px, 1.05fr);
}

.brand-panel {
    position: relative;
    display: flex;
    min-height: 100svh;
    min-height: 100dvh;
    overflow: hidden;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(34px, 5vw, 72px);
    color: var(--white);
    background:
        linear-gradient(120deg, rgba(0, 0, 0, .97), rgba(12, 12, 12, .88)),
        url(../img/aurveda.jpg) center / cover no-repeat;
    isolation: isolate;
}

.brand-panel::after {
    position: absolute;
    inset: 0;
    z-index: -2;
    content: "";
    background: radial-gradient(circle at 78% 20%, rgba(255, 216, 77, .2), transparent 30%);
}

.brand-panel-shape {
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 50%;
}

.shape-one {
    width: 440px;
    height: 440px;
    right: -220px;
    top: -150px;
}

.shape-two {
    width: 310px;
    height: 310px;
    left: -160px;
    bottom: -120px;
}

.brand-lockup {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 13px;
}

.brand-logo {
    display: grid;
    width: 64px;
    height: 64px;
    overflow: hidden;
    place-items: center;
    background: var(--white);
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    box-shadow: 0 15px 35px rgba(0, 0, 0, .16);
}

.brand-logo img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.brand-lockup > span:last-child {
    display: flex;
    flex-direction: column;
}

.brand-lockup strong {
    color: var(--white);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.65rem;
    letter-spacing: -.03em;
    line-height: 1;
}

.brand-lockup small {
    margin-top: 7px;
    color: #ffe991;
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.brand-message {
    max-width: 680px;
    padding: 80px 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 18px;
    gap: 9px;
    color: #ffe991;
    font-size: .73rem;
    font-weight: 800;
    letter-spacing: .17em;
    text-transform: uppercase;
}

.eyebrow-green {
    color: var(--pista-deep);
}

.brand-message h1 {
    max-width: 650px;
    margin: 0 0 23px;
    color: var(--white);
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(3.1rem, 5.6vw, 5.6rem);
    font-weight: 700;
    letter-spacing: -.05em;
    line-height: .98;
    text-wrap: balance;
}

.brand-message > p {
    max-width: 580px;
    margin: 0;
    color: rgba(255, 255, 255, .72);
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    line-height: 1.75;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    margin-top: 32px;
    gap: 12px;
}

.trust-row span {
    display: inline-flex;
    align-items: center;
    padding: 9px 13px;
    gap: 8px;
    color: rgba(255, 255, 255, .78);
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.trust-row i {
    color: var(--pista);
}

.brand-note {
    margin: 0;
    color: rgba(255, 255, 255, .5);
    font-size: .78rem;
    font-weight: 600;
}

.form-panel {
    position: relative;
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: 100svh;
    min-height: 100dvh;
    align-items: center;
    justify-content: center;
    padding: clamp(34px, 6vw, 86px);
    background:
        radial-gradient(circle at 100% 0%, rgba(255, 216, 77, .16), transparent 28%),
        var(--cream);
}

.back-home {
    position: absolute;
    top: 34px;
    left: 38px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 700;
}

.back-home:hover {
    color: var(--forest);
    transform: translateX(-3px);
}

.login-wrap {
    width: min(100%, 490px);
    min-width: 0;
}

.mobile-brand {
    display: none;
    width: 76px;
    height: 76px;
    margin-bottom: 24px;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 50%;
    box-shadow: var(--shadow);
}

.mobile-brand img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.login-heading h2 {
    margin: 0 0 12px;
    color: var(--forest);
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(2.25rem, 4vw, 3.3rem);
    letter-spacing: -.04em;
    line-height: 1.08;
}

.login-heading p {
    margin: 0;
    color: var(--muted);
    font-size: .96rem;
    line-height: 1.7;
}

.login-alert {
    display: flex;
    margin-top: 24px;
    padding: 13px 15px;
    align-items: flex-start;
    gap: 10px;
    color: #772d26;
    background: #fff0ed;
    border: 1px solid rgba(153, 59, 48, .18);
    border-radius: 13px;
    font-size: .82rem;
    font-weight: 700;
}

.login-form {
    display: grid;
    margin-top: 34px;
    gap: 22px;
}

.field-group {
    display: grid;
    gap: 9px;
}

.field-group label,
.label-row label {
    color: var(--ink);
    font-size: .8rem;
    font-weight: 800;
}

.label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.label-row a {
    font-size: .76rem;
    font-weight: 700;
}

.input-shell {
    position: relative;
    width: 100%;
    min-width: 0;
}

.input-shell > i {
    position: absolute;
    top: 50%;
    left: 18px;
    color: #849087;
    transform: translateY(-50%);
    pointer-events: none;
}

.input-shell input {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 60px;
    padding: 0 52px 0 48px;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .05);
    font-family: inherit;
    font-size: 16px;
    appearance: none;
    -webkit-appearance: none;
}

.input-shell input::placeholder {
    color: #99a39c;
}

.input-shell input:hover {
    border-color: rgba(217, 173, 0, .48);
}

.input-shell input:focus {
    outline: none;
    border-color: var(--pista-deep);
    box-shadow: 0 0 0 4px rgba(255, 216, 77, .2);
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    display: grid;
    width: 44px;
    height: 44px;
    padding: 0;
    place-items: center;
    color: #7c8880;
    background: transparent;
    border: 0;
    border-radius: 12px;
    transform: translateY(-50%);
    cursor: pointer;
}

.password-toggle:hover {
    color: var(--forest);
    background: var(--pista-soft);
}

.remember-row {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
}

.remember-row input {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: var(--pista-deep);
}

.login-button {
    display: flex;
    width: 100%;
    min-height: 60px;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    gap: 12px;
    color: var(--forest);
    background: var(--pista);
    border: 1px solid var(--pista);
    border-radius: 999px;
    box-shadow: 0 16px 32px rgba(217, 173, 0, .22);
    font-family: inherit;
    font-size: .9rem;
    font-weight: 800;
    cursor: pointer;
}

.login-button:hover {
    color: var(--white);
    background: var(--forest);
    border-color: var(--forest);
    box-shadow: 0 19px 38px rgba(0, 0, 0, .24);
    transform: translateY(-2px);
}

.login-button i {
    transition: transform 200ms ease;
}

.login-button:hover i {
    transform: translateX(4px);
}

.login-support {
    display: flex;
    margin-top: 27px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: var(--muted);
    font-size: .72rem;
}

.login-support span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.login-support i {
    color: var(--pista-deep);
}

.login-support a {
    flex: 0 0 auto;
    font-weight: 800;
}

.form-footer {
    position: absolute;
    right: 38px;
    bottom: 26px;
    left: 38px;
    margin: 0;
    color: #8c9890;
    font-size: .7rem;
    text-align: center;
}

@media (max-width: 1050px) {
    .auth-shell {
        grid-template-columns: minmax(340px, .85fr) minmax(470px, 1.15fr);
    }

    .brand-message h1 {
        font-size: clamp(2.8rem, 5.2vw, 4.3rem);
    }
}

@media (max-width: 960px) {
    .auth-shell {
        display: block;
    }

    .brand-panel {
        display: none;
    }

    .form-panel {
        min-height: 100svh;
        min-height: 100dvh;
        padding:
            calc(104px + env(safe-area-inset-top, 0px))
            max(28px, env(safe-area-inset-right, 0px))
            calc(68px + env(safe-area-inset-bottom, 0px))
            max(28px, env(safe-area-inset-left, 0px));
    }

    .mobile-brand {
        display: block;
    }

    .back-home {
        top: calc(26px + env(safe-area-inset-top, 0px));
        left: max(28px, env(safe-area-inset-left, 0px));
    }

    .form-footer {
        position: static;
        margin-top: 52px;
    }
}

@media (max-width: 520px) {
    .form-panel {
        align-items: flex-start;
        padding:
            calc(84px + env(safe-area-inset-top, 0px))
            max(18px, env(safe-area-inset-right, 0px))
            calc(34px + env(safe-area-inset-bottom, 0px))
            max(18px, env(safe-area-inset-left, 0px));
    }

    .back-home {
        top: calc(20px + env(safe-area-inset-top, 0px));
        left: max(20px, env(safe-area-inset-left, 0px));
    }

    .mobile-brand {
        width: 68px;
        height: 68px;
        margin-bottom: 20px;
    }

    .login-heading h2 {
        font-size: clamp(2rem, 10vw, 2.35rem);
    }

    .login-form {
        margin-top: 28px;
        gap: 18px;
    }

    .input-shell input,
    .login-button {
        min-height: 56px;
        height: 56px;
    }

    .input-shell input {
        border-radius: 14px;
    }

    .login-support {
        flex-direction: column;
        align-items: flex-start;
        gap: 9px;
    }

    .form-footer {
        margin-top: 38px;
    }
}

@media (max-width: 360px) {
    .mobile-brand {
        width: 60px;
        height: 60px;
        margin-bottom: 16px;
    }

    .eyebrow {
        margin-bottom: 12px;
        font-size: .66rem;
    }

    .login-heading h2 {
        font-size: 1.95rem;
    }

    .login-heading p {
        font-size: .88rem;
    }

    .remember-row {
        font-size: .75rem;
    }
}

@media (max-height: 680px) and (max-width: 960px) {
    .form-panel {
        align-items: flex-start;
    }

    .mobile-brand {
        width: 58px;
        height: 58px;
        margin-bottom: 14px;
    }

    .login-form {
        margin-top: 22px;
        gap: 16px;
    }

    .login-support {
        margin-top: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
