:root {
    --edexa-teal: #0f766e;
    --edexa-teal-dark: #134e4a;
    --edexa-teal-soft: #ccfbf1;
    --edexa-ink: #0f172a;
    --edexa-slate: #64748b;
    --edexa-line: #e2e8f0;
    --edexa-surface: #ffffff;
    --edexa-bg: #f5f8f7;
    --edexa-danger: #b91c1c;
    --edexa-danger-bg: #fef2f2;
}

* { box-sizing: border-box; }

body.login-page {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 32px;
    color: var(--edexa-ink);
    background:
        radial-gradient(circle at 8% 12%, rgba(13, 148, 136, .12), transparent 28%),
        radial-gradient(circle at 92% 90%, rgba(15, 118, 110, .08), transparent 30%),
        var(--edexa-bg);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.login-shell {
    width: min(1120px, 100%);
    min-height: 660px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 30px;
    background: var(--edexa-surface);
    box-shadow: 0 32px 90px rgba(15, 23, 42, .12);
}

.brand-panel {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 46px;
    color: #fff;
    background: linear-gradient(145deg, #0b3f3a 0%, #0f766e 58%, #0d9488 100%);
}

.brand-panel::before,
.brand-panel::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .13);
}

.brand-panel::before {
    width: 420px;
    height: 420px;
    right: -170px;
    top: -120px;
}

.brand-panel::after {
    width: 300px;
    height: 300px;
    left: -150px;
    bottom: -120px;
    background: rgba(255, 255, 255, .04);
}

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

.brand-mark {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 14px;
    background: rgba(255, 255, 255, .13);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
    font-size: 22px;
    font-weight: 850;
    letter-spacing: -.04em;
}

.brand-name {
    display: block;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: .01em;
}

.brand-module {
    display: block;
    margin-top: 3px;
    color: rgba(255, 255, 255, .72);
    font-size: 13px;
    font-weight: 600;
}

.brand-copy {
    max-width: 540px;
    margin: 72px 0 auto;
}

.brand-eyebrow {
    margin: 0 0 14px;
    color: #99f6e4;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.brand-copy h1 {
    margin: 0;
    max-width: 520px;
    font-size: clamp(36px, 4.7vw, 58px);
    font-weight: 780;
    line-height: 1.02;
    letter-spacing: -.045em;
}

.brand-copy p {
    max-width: 500px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, .76);
    font-size: 16px;
    line-height: 1.7;
}

.brand-points {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
}

.brand-point {
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .88);
    font-size: 12px;
    font-weight: 700;
}

.brand-foot {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, .63);
    font-size: 12px;
}

.brand-foot-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #5eead4;
    box-shadow: 0 0 0 5px rgba(94, 234, 212, .12);
}

.login-panel {
    display: grid;
    place-items: center;
    padding: 56px;
    background: rgba(255, 255, 255, .98);
}

.login-card {
    width: min(100%, 420px);
}

.mobile-brand {
    display: none;
    align-items: center;
    gap: 10px;
    margin-bottom: 38px;
}

.mobile-brand .brand-mark {
    color: #fff;
    border-color: transparent;
    background: var(--edexa-teal);
}

.mobile-brand .brand-name { color: var(--edexa-ink); }
.mobile-brand .brand-module { color: var(--edexa-slate); }

.login-kicker {
    margin: 0 0 9px;
    color: var(--edexa-teal);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.login-card h2 {
    margin: 0;
    color: var(--edexa-ink);
    font-size: 36px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.04em;
}

.login-intro {
    margin: 12px 0 0;
    color: var(--edexa-slate);
    font-size: 15px;
    line-height: 1.65;
}

.login-error {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 24px;
    padding: 13px 14px;
    border: 1px solid #fecaca;
    border-radius: 12px;
    color: var(--edexa-danger);
    background: var(--edexa-danger-bg);
    font-size: 13px;
    line-height: 1.45;
}

.login-error svg { flex: 0 0 auto; margin-top: 1px; }

.login-form {
    display: grid;
    gap: 20px;
    margin-top: 30px;
}

.field {
    display: grid;
    gap: 8px;
}

.field-label {
    color: #334155;
    font-size: 13px;
    font-weight: 750;
}

.input-wrap {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

.login-input {
    width: 100%;
    min-height: 52px;
    padding: 0 46px 0 46px;
    border: 1px solid var(--edexa-line);
    border-radius: 13px;
    outline: none;
    color: var(--edexa-ink);
    background: #fff;
    font: inherit;
    font-size: 15px;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.login-input::placeholder { color: #94a3b8; }
.login-input:hover { border-color: #cbd5e1; }

.login-input:focus {
    border-color: var(--edexa-teal);
    box-shadow: 0 0 0 4px rgba(13, 148, 136, .11);
    background: #fff;
}

.password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    transform: translateY(-50%);
    border: 0;
    border-radius: 10px;
    color: #64748b;
    background: transparent;
    cursor: pointer;
    transition: color .18s ease, background .18s ease;
}

.password-toggle:hover {
    color: var(--edexa-teal-dark);
    background: #f0fdfa;
}

.password-toggle:focus-visible {
    outline: 2px solid var(--edexa-teal);
    outline-offset: 2px;
}

.password-toggle svg { width: 19px; height: 19px; }
.password-toggle .eye-off { display: none; }
.password-toggle[data-visible="true"] .eye-on { display: none; }
.password-toggle[data-visible="true"] .eye-off { display: block; }

.submit-button {
    min-height: 52px;
    margin-top: 4px;
    border: 0;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(135deg, var(--edexa-teal-dark), var(--edexa-teal));
    box-shadow: 0 14px 30px rgba(15, 118, 110, .2);
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.submit-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(15, 118, 110, .26);
    filter: saturate(1.05);
}

.submit-button:active { transform: translateY(0); }

.submit-button:focus-visible {
    outline: 3px solid rgba(13, 148, 136, .25);
    outline-offset: 3px;
}

.login-meta {
    display: flex;
    justify-content: center;
    margin-top: 26px;
    font-size: 12px;
}

.login-meta a {
    color: var(--edexa-slate);
    text-decoration: none;
    transition: color .18s ease;
}

.login-meta a:hover { color: var(--edexa-teal); }

.edexa-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 900px) {
    body.login-page { padding: 18px; }

    .login-shell {
        width: min(560px, 100%);
        min-height: auto;
        grid-template-columns: 1fr;
        border-radius: 24px;
    }

    .brand-panel { display: none; }
    .login-panel { padding: 42px 34px 36px; }
    .mobile-brand { display: flex; }
}

@media (max-width: 520px) {
    body.login-page {
        display: block;
        padding: 0;
        background: #fff;
    }

    .login-shell {
        width: 100%;
        min-height: 100vh;
        min-height: 100dvh;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .login-panel {
        align-items: start;
        padding: 30px 24px;
    }

    .mobile-brand { margin-bottom: 46px; }
    .login-card h2 { font-size: 32px; }
}

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