@charset "utf-8";
/* ==========================================================================
   E-Indhan: auth pages design system. Shared by the sign-in (signin.blade.php),
   registration (registration-form.blade.php, plus register.css) and
   forgot-password (auth/passwords/email.blade.php) pages.
   ========================================================================== */

:root {
    /* Brand palette built around the E-Indhan green #56B700 */
    --brand-50:  #f3fbe8;
    --brand-100: #e4f6cc;
    --brand-200: #c8ec99;
    --brand-500: #56b700;   /* primary brand green: accents, borders, focus */
    --brand-600: #469700;
    --brand-canvas: #f6f9f1;
    --night: #060c04;      /* photo backdrop / dark brand surface */

    --green-700: #2a5f00;
    --green-600: #367a00;   /* accessible brand green for text on white (5.3:1) */
    --green-500: #56b700;

    --ink-900: #0f1a0a;
    --ink-700: #334033;
    --ink-600: #4a564a;
    --ink-500: #65706a;
    --ink-400: #98a29b;
    --line: #e4e9df;
    --line-soft: #e6ecdf;
    --line-strong: #cdd5c6;
    --surface: #ffffff;
    --canvas: #f6f9f1;

    --danger-700: #b91c1c;
    --danger-600: #dc2626;

    --radius: 12px;
    --radius-lg: 20px;
    --ring: 0 0 0 4px rgba(86, 183, 0, .22);
    --shadow-card: 0 1px 2px rgba(16, 24, 40, .04), 0 12px 32px -8px rgba(16, 24, 40, .08), 0 40px 80px -28px rgba(29, 66, 0, .22);
    --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.55;
    color: var(--ink-900);
    background: var(--canvas);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
p { margin: 0; }
button, input { font: inherit; color: inherit; }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.auth {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    min-height: 100vh;
}

/* --------------------------------------------------------------------------
   Brand panel: cinematic EV photograph (partials/ev-scene) + glass content
   -------------------------------------------------------------------------- */
.brand {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    isolation: isolate;
    color: #fff;
    background: var(--night);
}

/* Photo layer ------------------------------------------------------------- */
.ev-visual {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background: var(--night);
}

.ev-visual picture { display: contents; }

.ev-visual__img {
    position: absolute;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    object-fit: cover;
    object-position: 38% 50%;
    transform-origin: 40% 55%;
    animation: ev-reveal 1.6s cubic-bezier(.2, .8, .2, 1) both, ev-drift 32s ease-in-out 1.6s infinite alternate;
    will-change: transform;
}

.ev-visual--register .ev-visual__img { object-position: 42% 50%; }
.ev-visual--recovery .ev-visual__img { object-position: 72% 50%; transform-origin: 70% 50%; }

/* Legibility shading: darker behind the headline (top) and the cards (bottom) */
.ev-visual__shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(70% 45% at 12% 105%, rgba(86, 183, 0, .30), transparent 70%),
        radial-gradient(85% 42% at 0% 26%, rgba(4, 9, 3, .72), rgba(4, 9, 3, 0) 72%),
        linear-gradient(180deg, rgba(4, 9, 3, .88) 0%, rgba(4, 9, 3, .66) 26%, rgba(4, 9, 3, .22) 50%, rgba(4, 9, 3, .30) 64%, rgba(4, 9, 3, .92) 100%),
        linear-gradient(90deg, rgba(4, 9, 3, .55) 0%, rgba(4, 9, 3, 0) 62%);
}

/* Hairline technical grid, strongest in the top-left corner */
.ev-visual__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 70% 55% at 18% 18%, #000 10%, transparent 72%);
            mask-image: radial-gradient(ellipse 70% 55% at 18% 18%, #000 10%, transparent 72%);
}

/* Energy light trails sweeping across the lower part of the photo */
.ev-trail {
    position: absolute;
    left: 0;
    width: 46%;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, rgba(86, 183, 0, 0) 0%, rgba(86, 183, 0, .9) 55%, #e9ffd1 85%, rgba(233, 255, 209, 0) 100%);
    box-shadow: 0 0 12px 1px rgba(86, 183, 0, .55);
    opacity: 0;
    transform: translateX(-110%) rotate(-4deg);
    animation: ev-trail 7.5s cubic-bezier(.45, 0, .2, 1) infinite;
}

.ev-trail--one   { top: 79%; animation-delay: 1.2s; }
.ev-trail--two   { top: 84%; width: 30%; height: 1px; animation-delay: 3.6s; animation-duration: 9s; }
.ev-trail--three { top: 89%; width: 38%; animation-delay: 5.8s; animation-duration: 8.2s; }

/* Glowing divider between the photo and the form column */
.ev-visual__edge {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, rgba(86, 183, 0, 0) 0%, rgba(86, 183, 0, .55) 40%, rgba(86, 183, 0, .55) 60%, rgba(86, 183, 0, 0) 100%);
}

.ev-visual__edge::after {
    content: "";
    position: absolute;
    left: -1px;
    width: 3px;
    height: 120px;
    border-radius: 3px;
    background: linear-gradient(180deg, rgba(198, 255, 140, 0), #c6ff8c, rgba(198, 255, 140, 0));
    box-shadow: 0 0 14px 2px rgba(86, 183, 0, .7);
    animation: ev-pulse-down 6s ease-in-out infinite;
}

/* Content layer ----------------------------------------------------------- */
.brand__inner {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 760px;
    padding: clamp(28px, 3.4vw, 52px) clamp(32px, 4.2vw, 64px);
}

/* Colour wordmark rendered white on the dark photo */
.brand__logo img {
    width: auto;
    height: 40px;
    filter: brightness(0) invert(1);
}

.brand__content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    padding: clamp(28px, 7vh, 88px) 0 0;
    animation: rise .8s cubic-bezier(.2, .8, .2, 1) .15s both;
}

.eyebrow {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .07);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #dff5c8;
    -webkit-backdrop-filter: blur(12px);
            backdrop-filter: blur(12px);
}

.eyebrow__dot {
    position: relative;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    color: #0b1a04;
    background: var(--brand-500);
    box-shadow: 0 0 14px rgba(86, 183, 0, .8);
}

.eyebrow__dot::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid rgba(86, 183, 0, .7);
    animation: ev-ping 2.6s cubic-bezier(0, 0, .2, 1) infinite;
}

.eyebrow__dot svg { width: 12px; height: 12px; }

.brand__title {
    margin: 22px 0 14px;
    font-size: clamp(40px, 3.9vw, 64px);
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: -.045em;
    color: #fff;
    text-shadow: 0 2px 30px rgba(0, 0, 0, .35);
}

.brand__title span {
    color: #8fdc3c;
    background: linear-gradient(95deg, #c6f58a 0%, #7fd41c 45%, #56b700 100%);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 0 22px rgba(86, 183, 0, .45));
}

.brand__lead {
    max-width: 460px;
    margin-bottom: 28px;
    font-size: 16.5px;
    line-height: 1.65;
    color: rgba(255, 255, 255, .82);
    text-shadow: 0 1px 14px rgba(0, 0, 0, .55);
}

/* Feature highlights: dark glass tiles pinned to the bottom of the panel */
.features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: auto 0 0;
    padding: 0;
    list-style: none;
}

.feature {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: linear-gradient(160deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .03));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 18px 40px -24px rgba(0, 0, 0, .8);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
            backdrop-filter: blur(16px) saturate(140%);
    transition: border-color .25s ease, background-color .25s ease, transform .25s ease;
}

.feature::before {
    content: "";
    position: absolute;
    top: 0;
    left: 14px;
    right: 14px;
    height: 1px;
    background: linear-gradient(90deg, rgba(86, 183, 0, 0), rgba(134, 222, 50, .7), rgba(86, 183, 0, 0));
    opacity: 0;
    transition: opacity .25s ease;
}

.feature:hover {
    transform: translateY(-2px);
    border-color: rgba(134, 222, 50, .35);
}

.feature:hover::before { opacity: 1; }

.feature__icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(134, 222, 50, .35);
    color: #b5ef72;
    background: rgba(86, 183, 0, .14);
    box-shadow: 0 0 18px -4px rgba(86, 183, 0, .55);
}

.feature__icon svg { width: 17px; height: 17px; }

.feature__title {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: #fff;
}

.feature__text {
    display: block;
    margin-top: 1px;
    font-size: 12.5px;
    line-height: 1.4;
    color: rgba(255, 255, 255, .66);
}

.brand__foot {
    padding-top: 18px;
    font-size: 12.5px;
    color: rgba(255, 255, 255, .5);
}

@keyframes ev-reveal {
    from { opacity: 0; transform: scale(1.12); }
    to   { opacity: 1; transform: scale(1.04); }
}

@keyframes ev-drift {
    from { transform: scale(1.04) translate3d(0, 0, 0); }
    to   { transform: scale(1.1) translate3d(-1.2%, -.8%, 0); }
}

@keyframes ev-trail {
    0%   { opacity: 0; transform: translateX(-110%) rotate(-4deg); }
    12%  { opacity: 1; }
    55%  { opacity: .9; }
    70%, 100% { opacity: 0; transform: translateX(240%) rotate(-4deg); }
}

@keyframes ev-pulse-down {
    0%   { top: -120px; opacity: 0; }
    15%  { opacity: 1; }
    85%  { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

@keyframes ev-ping {
    0%   { opacity: .9; transform: scale(.8); }
    80%, 100% { opacity: 0; transform: scale(1.6); }
}

/* --------------------------------------------------------------------------
   Form column
   -------------------------------------------------------------------------- */
.main {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 48px 24px;
    background:
        radial-gradient(560px 380px at 100% 0%, rgba(86, 183, 0, .10), transparent 65%),
        radial-gradient(520px 360px at 0% 100%, rgba(86, 183, 0, .07), transparent 65%),
        #fbfcf9;
}

/* Fine dot matrix behind the card */
.main::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(rgba(54, 122, 0, .16) 1px, transparent 1.2px);
    background-size: 22px 22px;
    -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 45%, #000 0%, transparent 75%);
            mask-image: radial-gradient(ellipse 60% 55% at 50% 45%, #000 0%, transparent 75%);
    opacity: .55;
    pointer-events: none;
}

.card {
    position: relative;
    width: 100%;
    max-width: 440px;
    padding: 40px;
    border: 1px solid transparent;
    border-radius: 22px;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(160deg, rgba(86, 183, 0, .55) 0%, rgba(86, 183, 0, .10) 28%, rgba(15, 26, 10, .07) 55%, rgba(86, 183, 0, .28) 100%) border-box;
    box-shadow: var(--shadow-card);
    animation: rise .55s cubic-bezier(.2, .8, .2, 1) both;
}

/* Glowing accent along the top edge of the card */
.card::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 32px;
    right: 32px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, rgba(86, 183, 0, 0), var(--brand-500) 30%, #b9f27a 50%, var(--brand-500) 70%, rgba(86, 183, 0, 0));
    box-shadow: 0 0 16px rgba(86, 183, 0, .55);
}

.card__head { margin-bottom: 28px; }

.card__mark {
    position: relative;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 22px;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(145deg, #6ccc14 0%, var(--brand-500) 35%, #2f6b00 100%);
    box-shadow: 0 0 0 6px rgba(86, 183, 0, .10), 0 10px 24px -8px rgba(54, 122, 0, .65), inset 0 1px 0 rgba(255, 255, 255, .3);
}

.card__mark::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 17px;
    border: 1px solid rgba(86, 183, 0, .35);
    animation: ev-ring 3.2s cubic-bezier(0, 0, .2, 1) infinite;
}

.card__mark svg { width: 22px; height: 22px; }

.card__title {
    margin: 0;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -.025em;
}

.card__subtitle {
    margin-top: 6px;
    font-size: 15px;
    color: var(--ink-500);
}

/* Alerts ------------------------------------------------------------------ */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 22px;
    padding: 12px 10px 12px 14px;
    border: 1px solid;
    border-radius: var(--radius);
    font-size: 14px;
    line-height: 1.5;
    animation: rise .35s ease both;
}

.alert__icon { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.alert__body { flex: 1; min-width: 0; }
.alert__title { font-weight: 700; }
.alert__title + .alert__text { margin-top: 2px; }
.alert__text a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

.alert__close {
    display: grid;
    place-items: center;
    flex: none;
    width: 28px;
    height: 28px;
    margin: -3px 0 0;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    opacity: .7;
    cursor: pointer;
    transition: opacity .15s, background-color .15s;
}

.alert__close svg { width: 16px; height: 16px; }
.alert__close:hover { opacity: 1; background: rgba(0, 0, 0, .06); }
.alert__close:focus-visible { opacity: 1; outline: 2px solid currentColor; outline-offset: 1px; }

.alert--danger  { color: #991b1b; border-color: #fecaca; background: #fef2f2; }
.alert--success { color: var(--green-700); border-color: var(--brand-200); background: var(--brand-50); }
.alert--warning { color: #92400e; border-color: #fde68a; background: #fffbeb; }

/* Fields ------------------------------------------------------------------ */
.field { margin-bottom: 18px; }

.field__label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-700);
}

.field__control { position: relative; }

.field__icon {
    position: absolute;
    top: 50%;
    left: 15px;
    color: var(--ink-400);
    transform: translateY(-50%);
    pointer-events: none;
    transition: color .15s;
}

.field__icon svg { width: 18px; height: 18px; }

.field__input {
    width: 100%;
    height: 50px;
    padding: 0 14px 0 45px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: #fff;
    font-size: 15px;
    color: var(--ink-900);
    -webkit-appearance: none;
            appearance: none;
    transition: border-color .15s, box-shadow .15s, background-color .15s;
}

.field__input::placeholder { color: var(--ink-400); opacity: 1; }
.field__input:hover { border-color: var(--ink-400); }

.field__input:focus {
    outline: none;
    border-color: var(--green-500);
    box-shadow: var(--ring);
}

.field__control:focus-within .field__icon { color: var(--green-600); }

.field__input--toggle { padding-right: 54px; }

/* Hide the browser's own password reveal button (Edge) so there is only one toggle */
.field__input::-ms-reveal,
.field__input::-ms-clear { display: none; }

.field__input:-webkit-autofill,
.field__input:-webkit-autofill:hover {
    -webkit-text-fill-color: var(--ink-900);
    box-shadow: 0 0 0 1000px var(--brand-50) inset;
    transition: background-color 9999s ease-out;
}

.field__input:-webkit-autofill:focus {
    box-shadow: 0 0 0 1000px var(--brand-50) inset, var(--ring);
}

.field__input.is-invalid {
    border-color: var(--danger-600);
    background-color: #fffafa;
}

.field__input.is-invalid:focus { box-shadow: 0 0 0 4px rgba(220, 38, 38, .14); }
.field__control:has(.is-invalid) .field__icon { color: var(--danger-600); }

.field__toggle {
    position: absolute;
    top: 50%;
    right: 5px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--ink-500);
    transform: translateY(-50%);
    cursor: pointer;
    transition: background-color .15s, color .15s, box-shadow .15s;
}

.field__toggle svg { width: 20px; height: 20px; }
.field__toggle:hover { color: var(--ink-900); background: #f2f5ef; }
.field__toggle:focus-visible { outline: none; color: var(--green-600); box-shadow: var(--ring); }
.field__toggle .icon-eye-off { display: none; }
.field__toggle[aria-pressed="true"] .icon-eye { display: none; }
.field__toggle[aria-pressed="true"] .icon-eye-off { display: block; }

.no-js .field__toggle { display: none; }
.no-js .field__input--toggle { padding-right: 14px; }

.field__error {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 7px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--danger-700);
}

.field__error::before {
    content: "";
    flex: none;
    width: 15px;
    height: 15px;
    margin-top: 1px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b91c1c' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='8' x2='12' y2='12'/%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'/%3E%3C/svg%3E") no-repeat center / contain;
}

.field__error:empty { display: none; }
.field__error--center { justify-content: center; }

/* Options row: remember email + forgot password --------------------------- */
.form-options {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    margin: 4px 0 24px;
}

.checkbox {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--ink-700);
    cursor: pointer;
    -webkit-user-select: none;
            user-select: none;
}

.checkbox__input {
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.checkbox__box {
    display: grid;
    place-items: center;
    flex: none;
    width: 20px;
    height: 20px;
    border: 1.5px solid var(--line-strong);
    border-radius: 6px;
    background: #fff;
    color: #fff;
    transition: background-color .15s, border-color .15s, box-shadow .15s;
}

.checkbox__box svg {
    width: 13px;
    height: 13px;
    opacity: 0;
    transform: scale(.6);
    transition: opacity .15s, transform .15s;
}

.checkbox:hover .checkbox__box { border-color: var(--green-500); }
.checkbox__input:checked + .checkbox__box { border-color: var(--brand-600); background: var(--brand-600); }
.checkbox__input:checked + .checkbox__box svg { opacity: 1; transform: scale(1); }
.checkbox__input:focus-visible + .checkbox__box { border-color: var(--green-500); box-shadow: var(--ring); }

.link {
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--green-600);
    text-decoration: none;
    transition: color .15s;
}

.link:hover { color: var(--green-700); text-decoration: underline; text-underline-offset: 3px; }
.link:focus-visible { outline: 2px solid var(--green-500); outline-offset: 2px; }

/* Touch screens: enlarge the tap area of small controls without moving them */
@media (pointer: coarse) {
    .checkbox,
    .form-options .link {
        padding: 12px 0;
        margin: -12px 0;
    }

    .form-options .link { display: inline-block; }
}

/* reCAPTCHA --------------------------------------------------------------- */
.field--recaptcha { margin: -4px 0 22px; }

/* The widget is a fixed 304 x 78px iframe; login.js scales it down when the card is narrower */
.recaptcha-box {
    display: flex;
    justify-content: center;
    min-height: 78px;
}

.recaptcha-box .g-recaptcha { transform-origin: center top; }

.recaptcha-box:focus { outline: none; }

.recaptcha-box.is-invalid .g-recaptcha {
    border-radius: 4px;
    box-shadow: 0 0 0 2px var(--danger-600);
}

/* Buttons ----------------------------------------------------------------- */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 50px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}

.btn:focus-visible { outline: none; box-shadow: var(--ring); }

.btn--primary {
    overflow: hidden;
    isolation: isolate;
    color: #fff;
    background: linear-gradient(180deg, #3f8c00 0%, #2f6b00 100%);
    box-shadow: inset 0 1px 0 rgba(166, 222, 94, .45), 0 10px 26px -8px rgba(86, 183, 0, .6);
}

/* Light sheen that sweeps across the button on hover */
.btn--primary::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -60%;
    z-index: -1;
    width: 45%;
    background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .26), rgba(255, 255, 255, 0));
    transform: skewX(-20deg);
    transition: left .7s ease;
    pointer-events: none;
}

.btn--primary:hover::after { left: 120%; }

.btn--primary:hover {
    transform: translateY(-1px);
    background: linear-gradient(180deg, #449600 0%, #337300 100%);
    box-shadow: inset 0 1px 0 rgba(166, 222, 94, .5), 0 14px 28px -8px rgba(54, 122, 0, .55);
}

.btn--primary:active { transform: translateY(0); box-shadow: 0 4px 12px -4px rgba(54, 122, 0, .45); }
.btn--primary:focus-visible { box-shadow: 0 0 0 4px rgba(86, 183, 0, .35), 0 8px 20px -6px rgba(54, 122, 0, .5); }

.btn__icon { width: 18px; height: 18px; transition: transform .2s ease; }
.btn--primary:hover .btn__icon { transform: translateX(3px); }

.btn__spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

.btn.is-loading { cursor: progress; transform: none; }
.btn.is-loading .btn__icon { display: none; }
.btn.is-loading .btn__spinner { display: inline-block; }

.divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 26px 0 18px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-400);
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

.social {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.btn--social {
    height: 48px;
    border-color: var(--line-strong);
    background: #fff;
    color: var(--ink-900);
    font-weight: 600;
}

.btn--social svg { width: 20px; height: 20px; }

.btn--social:hover {
    transform: translateY(-1px);
    border-color: var(--ink-400);
    background: #f8faf6;
    box-shadow: 0 6px 16px -8px rgba(15, 23, 42, .25);
}

.card__foot {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    text-align: center;
    font-size: 14px;
    color: var(--ink-600);
}

.legal {
    max-width: 440px;
    margin-top: 22px;
    text-align: center;
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--ink-500);
}

.legal a {
    font-weight: 600;
    color: var(--ink-700);
    text-decoration: underline;
    text-decoration-color: rgba(51, 64, 51, .3);
    text-underline-offset: 2px;
}

.legal a:hover { color: var(--green-600); text-decoration-color: currentColor; }
.legal a:focus-visible { border-radius: 3px; outline: 2px solid var(--green-500); outline-offset: 2px; }

.main__foot { display: none; }

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */
@keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
}

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

@keyframes ev-ring {
    0%   { opacity: .9; transform: scale(1); }
    80%, 100% { opacity: 0; transform: scale(1.22); }
}

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

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

/* Short desktop screens: tighten the brand panel so it never clips */
@media (min-width: 992px) and (max-height: 820px) {
    .brand__content { padding-top: clamp(20px, 5vh, 40px); }
    .brand__title { margin: 16px 0 10px; font-size: clamp(36px, 3.4vw, 50px); }
    .brand__lead { font-size: 15.5px; }
    .feature { padding: 10px 12px; }
    .feature__text { display: none; }
}

@media (min-width: 992px) and (max-height: 760px) {
    .brand__foot { display: none; }

    .main { padding: 24px; }
    .card { padding: 32px 36px; }
    .card__head { margin-bottom: 22px; }
    .card__mark { margin-bottom: 16px; }
}

@media (min-width: 992px) and (max-height: 620px) {
    .features { display: none; }
}

/* Mid-size desktops: compact feature tiles */
@media (min-width: 992px) and (max-width: 1199px) {
    .feature__text { display: none; }
    .brand__title { font-size: clamp(38px, 4.2vw, 48px); }
}

@media (min-width: 1600px) {
    .card { max-width: 460px; }
    .legal { max-width: 460px; }
}

/* Tablet & mobile: the photo becomes a cinematic header band, card overlaps it */
@media (max-width: 991px) {
    .auth {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto 1fr;
    }

    .brand {
        position: relative;
        height: auto;
    }

    .ev-visual__img { object-position: 50% 58%; }
    .ev-visual--recovery .ev-visual__img { object-position: 70% 55%; }

    .ev-visual__shade {
        background:
            radial-gradient(80% 60% at 50% 100%, rgba(86, 183, 0, .28), transparent 70%),
            linear-gradient(180deg, rgba(4, 9, 3, .78) 0%, rgba(4, 9, 3, .55) 45%, rgba(4, 9, 3, .45) 70%, rgba(4, 9, 3, .80) 100%);
    }

    .ev-trail--one   { top: auto; bottom: 96px; }
    .ev-trail--two   { top: auto; bottom: 88px; }
    .ev-trail--three { display: none; }
    .ev-visual__edge { display: none; }

    .brand__inner {
        align-items: center;
        max-width: none;
        padding: 28px 24px 112px;
        text-align: center;
    }

    .brand__logo img { height: 36px; margin: 0 auto; }

    .brand__content {
        flex: none;
        align-items: center;
        width: 100%;
        max-width: 600px;
        padding: 26px 0 0;
    }

    .eyebrow { align-self: center; }

    .features,
    .brand__foot { display: none; }

    .brand__title { margin: 18px 0 12px; font-size: clamp(34px, 7vw, 52px); }
    .brand__lead { margin: 0 auto; font-size: 15.5px; }

    .main {
        justify-content: flex-start;
        min-height: 0;
        padding: 0 16px 28px;
    }

    .main::before { -webkit-mask-image: none; mask-image: none; opacity: .3; }

    .card {
        z-index: 1;
        margin-top: -76px;
    }

    .main__foot {
        display: block;
        margin-top: 10px;
        font-size: 12.5px;
        color: var(--ink-400);
    }
}

@media (max-width: 480px) {
    .brand__inner { padding: 22px 18px 100px; }
    .brand__logo img { height: 30px; }
    .brand__content { padding-top: 20px; }
    .eyebrow { font-size: 10.5px; padding: 5px 12px 5px 6px; }
    .brand__title { margin: 14px 0 10px; font-size: 34px; }
    .brand__lead { font-size: 14px; }

    .card {
        padding: 28px 20px 24px;
        border-radius: 18px;
    }

    .card::before { left: 22px; right: 22px; }
    .card__head { margin-bottom: 22px; }
    .card__mark { width: 42px; height: 42px; margin-bottom: 18px; }
    .card__title { font-size: 24px; }
    .card__subtitle { font-size: 14px; }
}
