/* =====================================================================
   EduTest UI 2027: authentication pages (reference: maquette auth-v3)
   Only loaded by resources/views/auth/layout.blade.php:
   login, forgot password and reset password. Register, welcome and the
   other spaces keep their own stylesheets.
   ===================================================================== */

:root {
    --et-sidebar: #111a31;
    --et-bg: #f4f6fb;
    --et-surface-2: #f8f9fc;
    --et-border: #e0e5ef;
    --et-border-strong: #cdd4e3;
    --et-text: #18203a;
    --et-text-2: #3b4562;
    --et-muted: #5a6480;
    --et-subtle: #8a93ab;
    --et-primary: #3457b8;
    --et-primary-hover: #2b4aa0;
    --et-accent: #b22640;
    --et-shadow: 0 24px 60px -30px rgba(17, 26, 49, 0.35), 0 2px 8px rgba(17, 26, 49, 0.05);
    --et-font-ui: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
    --et-font-display: "Bricolage Grotesque", "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
}

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

body.ea {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--et-bg);
    color: var(--et-text);
    font: 15px/1.5 var(--et-font-ui);
    -webkit-font-smoothing: antialiased;
}
.ea a {
    color: var(--et-primary);
}
.ea :focus-visible {
    outline: 2px solid var(--et-primary);
    outline-offset: 2px;
}

/* Icons (x-ui.icon component) */
.ea .eu-ico {
    width: 18px;
    height: 18px;
    flex: none;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.ea .eu-ico--sm {
    width: 16px;
    height: 16px;
}

/* ---------- Top bar (same links as templates/navbar) ---------- */
.ea-topbar {
    background: #fff;
    border-bottom: 1px solid var(--et-border);
}
.ea-topbar-in {
    max-width: 1200px;
    margin: 0 auto;
    height: 72px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 28px;
}
.ea-logo img {
    height: 34px;
    display: block;
}
.ea-links {
    display: flex;
    gap: 24px;
}
.ea .ea-links a {
    color: var(--et-text-2);
    text-decoration: none;
    font-weight: 500;
    font-size: 14.5px;
}
.ea .ea-links a:hover {
    color: var(--et-primary);
}
.ea-top-actions {
    margin-left: auto;
    display: flex;
    gap: 10px;
}

/* ---------- Buttons ---------- */
.ea .ea-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 46px;
    padding: 0 20px;
    border-radius: 10px;
    border: 1px solid transparent;
    font: 600 15px var(--et-font-ui);
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.ea .ea-btn-sm {
    height: 40px;
    padding: 0 16px;
    font-size: 14px;
}
.ea .ea-btn-primary {
    background: var(--et-primary);
    color: #fff;
}
.ea .ea-btn-primary:hover {
    background: var(--et-primary-hover);
    color: #fff;
}
.ea .ea-btn-outline {
    background: #fff;
    color: var(--et-text);
    border-color: var(--et-border-strong);
}
.ea .ea-btn-outline:hover {
    background: var(--et-surface-2);
    border-color: var(--et-subtle);
    color: var(--et-text);
}
.ea .ea-btn-block {
    width: 100%;
}
.ea-btn-social img {
    width: 20px;
    height: 20px;
}
.ea .ea-btn[aria-disabled="true"] {
    opacity: 0.55;
    cursor: not-allowed;
    background: var(--et-surface-2);
}

/* ---------- Card ---------- */
.ea-main {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px 64px;
}
.ea-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
    min-height: 600px;
    background: #fff;
    border: 1px solid var(--et-border);
    border-radius: 24px;
    box-shadow: var(--et-shadow);
    overflow: hidden;
}
.ea-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 36px;
    background: var(--et-sidebar);
    overflow: hidden;
}
.ea-visual::before,
.ea-visual::after {
    content: "";
    position: absolute;
    border-radius: 50%;
}
.ea-visual::before {
    width: 520px;
    height: 520px;
    right: -180px;
    top: -160px;
    background: radial-gradient(closest-side, rgba(52, 87, 184, 0.55), transparent);
}
.ea-visual::after {
    width: 380px;
    height: 380px;
    left: -140px;
    bottom: -160px;
    background: radial-gradient(closest-side, rgba(178, 38, 64, 0.35), transparent);
}
.ea-brand {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
}
.ea-brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #1f2d52;
    display: grid;
    place-items: center;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.ea-brand-mark img {
    width: 28px;
}
.ea-brand-txt b {
    display: block;
    font-family: var(--et-font-display);
    font-size: 21px;
    line-height: 1.1;
    letter-spacing: -0.01em;
}
.ea-brand-txt small {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8e9bbd;
}
.ea-illu {
    position: relative;
    z-index: 1;
    flex: 1;
    display: grid;
    place-items: center;
}
.ea-illu-bg {
    position: absolute;
    inset: 8% 6%;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.ea-illu img {
    position: relative;
    width: min(100%, 440px);
    margin: 24px 0;
    filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.25));
}

/* ---------- Form ---------- */
.ea-form {
    padding: 48px 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.ea-title {
    margin: 0;
    font-family: var(--et-font-display);
    font-size: 30px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--et-text);
}
.ea-lead {
    margin: 8px 0 28px;
    color: var(--et-muted);
    font-size: 14.5px;
}
.ea-lead b {
    display: block;
    margin-bottom: 2px;
    color: var(--et-text);
    font-weight: 600;
}
.ea-spaced {
    margin-top: 24px;
}
.ea-field {
    margin-bottom: 18px;
}
.ea-field-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 7px;
}
.ea-field label {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--et-text-2);
}
.ea .ea-field-top a {
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}
.ea .ea-field-top a:hover {
    text-decoration: underline;
}
.ea-control {
    position: relative;
}
.ea .ea-lead-ico {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--et-subtle);
    pointer-events: none;
}
.ea-input {
    width: 100%;
    height: 48px;
    padding: 0 14px 0 44px;
    border: 1px solid var(--et-border-strong);
    border-radius: 10px;
    background: #fff;
    color: var(--et-text);
    font: 15px var(--et-font-ui);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ea-input::placeholder {
    color: var(--et-subtle);
}
.ea-input:focus {
    outline: 0;
    border-color: var(--et-primary);
    box-shadow: 0 0 0 3px rgba(52, 87, 184, 0.15);
}
.ea-input.ea-has-toggle {
    padding-right: 48px;
}
.ea-eye {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 8px;
    background: none;
    color: var(--et-muted);
    display: grid;
    place-items: center;
    cursor: pointer;
}
.ea-eye:hover {
    background: var(--et-surface-2);
    color: var(--et-text);
}
.ea-eye .ea-eye-on,
.ea-eye[aria-pressed="true"] .ea-eye-off {
    display: none;
}
.ea-eye[aria-pressed="true"] .ea-eye-on {
    display: block;
}
.ea-field.is-invalid .ea-input {
    border-color: var(--et-accent);
    background: #fffafb;
}
.ea-field.is-invalid .ea-input:focus {
    box-shadow: 0 0 0 3px rgba(178, 38, 64, 0.14);
}
.ea-error {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 7px;
    color: var(--et-accent);
    font-size: 13px;
    font-weight: 500;
}
.ea-error .eu-ico {
    margin-top: 1px;
}
.ea-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 22px 0;
    color: var(--et-subtle);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
}
.ea-divider::before,
.ea-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--et-border);
}
.ea-socials {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.ea-hint {
    margin: 10px 0 0;
    text-align: center;
    font-size: 12.5px;
    color: var(--et-muted);
}
.ea-alt {
    margin-top: 26px;
    display: grid;
    gap: 8px;
    text-align: center;
    font-size: 14px;
    color: var(--et-muted);
}
.ea .ea-alt a {
    font-weight: 600;
    text-decoration: none;
}
.ea .ea-alt a:hover {
    text-decoration: underline;
}
.ea .ea-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* ---------- Footer (same links as templates/footer) ---------- */
.ea-footer {
    background: var(--et-sidebar);
    color: #b9c3dc;
}
.ea-footer-in {
    max-width: 1200px;
    margin: 0 auto;
    padding: 36px 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 24px;
}
.ea-logo-chip {
    display: inline-grid;
    place-items: center;
    padding: 8px 14px;
    border-radius: 12px;
    background: #fff;
}
.ea-logo-chip img {
    height: 28px;
    display: block;
}
.ea-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin: 18px 0 12px;
}
.ea .ea-footer-links a {
    color: #dfe6f7;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}
.ea .ea-footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}
.ea-footer small {
    color: #7583a5;
    font-size: 12.5px;
}
.ea-mail {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #dfe6f7;
    font-size: 14px;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    /* as in templates/navbar: links and buttons are collapsed below 992px */
    .ea-links,
    .ea-top-actions {
        display: none;
    }
    .ea-card {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
    }
    .ea-visual {
        padding: 24px 28px;
    }
    .ea-illu {
        display: none;
    }
}
@media (max-width: 575.98px) {
    .ea-topbar-in {
        height: 60px;
        padding: 0 16px;
    }
    .ea-logo img {
        height: 28px;
    }
    .ea-main {
        padding: 16px 12px 32px;
    }
    .ea-card {
        border-radius: 18px;
    }
    .ea-visual {
        padding: 18px 20px;
    }
    .ea-form {
        padding: 28px 20px;
    }
    .ea-title {
        font-size: 25px;
    }
    .ea-socials {
        grid-template-columns: 1fr;
    }
    .ea-footer-in {
        padding: 28px 16px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .ea *,
    .ea *::before,
    .ea *::after {
        transition: none !important;
    }
}
