/* EMISMS authentication screens (login, sign-up, password reset). */
:root { --emi-blue: #0877ef; --emi-blue-600: #0667d0; --emi-navy: #073c73; --emi-orange: #ff8908; --emi-orange-600: #ec7600; --emi-ink: #10234b; --emi-muted: #61718e; --emi-line: #dce6f3; --emi-focus: 0 0 0 3px rgba(8,119,239,.25); }
* { box-sizing: border-box; }
html, body { margin: 0; }
body.emi-auth { font-family: Inter, Arial, sans-serif; color: var(--emi-ink); background: #f5f9ff; -webkit-font-smoothing: antialiased; }
.emi-auth a { color: var(--emi-blue); text-decoration: none; }
.emi-auth a:hover { color: var(--emi-blue-600); text-decoration: underline; }
.emi-ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.auth-layout { display: grid; grid-template-columns: minmax(0, 58%) minmax(0, 42%); min-height: 100vh; }

.auth-hero { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 36px 5%; background: linear-gradient(140deg, #d8ecff 0%, #f9fcff 52%, #d4edff 100%); }
.auth-hero::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: -120px; height: 220px; background: radial-gradient(120% 100% at 30% 0%, transparent 58%, rgba(255,137,8,.9) 59%, #ffb35c 75%, transparent 76%); pointer-events: none; }
.auth-hero header { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.auth-hero header img { width: 210px; height: auto; }
.auth-hero header span { font-style: italic; font-size: 17px; color: #13518c; }
.auth-hero__main { position: relative; z-index: 1; flex: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 28px; align-items: center; padding: 18px 0; }
.auth-hero h1 { margin: 0 0 16px; font-size: clamp(30px, 3.1vw, 48px); line-height: 1.08; letter-spacing: -1px; color: var(--emi-ink); }
.auth-hero h1 em { font-style: normal; color: var(--emi-blue); }
.auth-hero__lead { margin: 0 0 22px; max-width: 520px; font-size: 16.5px; line-height: 1.65; color: #4d6385; }
.auth-features { list-style: none; margin: 0; padding: 0; }
.auth-features li { display: flex; align-items: center; gap: 14px; margin: 16px 0; }
.auth-features__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: #fff; box-shadow: 0 6px 16px rgba(8,71,127,.08); flex: none; }
.auth-features__icon .emi-ic { width: 24px; height: 24px; }
.auth-features li:nth-child(1) .auth-features__icon { color: var(--emi-blue); }
.auth-features li:nth-child(2) .auth-features__icon { color: var(--emi-orange); }
.auth-features li:nth-child(3) .auth-features__icon { color: #0f9d6b; }
.auth-features li:nth-child(4) .auth-features__icon { color: #6c4ad6; }
.auth-features b { display: block; font-size: 15px; }
.auth-features small { display: block; margin-top: 3px; color: #587093; font-size: 13.5px; }
.auth-hero__art img { display: block; width: 100%; max-height: 600px; object-fit: cover; border-radius: 28px; box-shadow: 0 20px 50px rgba(6,80,155,.16); }
.auth-hero footer { position: relative; z-index: 1; color: #13518c; font-size: 13px; }

.auth-panel { display: flex; flex-direction: column; justify-content: center; padding: 28px 6%; background: #fff; }
.auth-card { width: 100%; max-width: 480px; margin: 0 auto; }
.auth-card__brand { display: block; width: 210px; height: auto; margin: 0 auto 14px; }
.auth-card h2 { margin: 6px 0 8px; text-align: center; font-size: 25px; letter-spacing: -.3px; }
.auth-card__subtitle { margin: 0 0 22px; text-align: center; color: #647795; line-height: 1.55; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 0 0 22px; padding: 4px; border-radius: 12px; background: #f0f5fc; }
.auth-tabs a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: 9px; color: #214671; font-weight: 700; font-size: 14px; text-decoration: none !important; }
.auth-tabs a.is-active { background: var(--emi-blue); color: #fff; box-shadow: 0 8px 18px rgba(8,119,239,.25); }
.auth-form label.auth-label { display: block; margin: 16px 0 8px; font-weight: 600; font-size: 14px; }
.auth-input { display: flex; align-items: center; gap: 4px; padding: 0 12px; border: 1px solid #ccdbee; border-radius: 12px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.auth-input:focus-within { border-color: var(--emi-blue); box-shadow: var(--emi-focus); }
.auth-input .emi-ic { color: #7a8aa6; }
.auth-input input, .auth-input select { flex: 1; min-width: 0; padding: 14px 10px; border: 0; outline: 0; background: transparent; font: inherit; color: var(--emi-ink); }
.auth-input__toggle { display: grid; place-items: center; padding: 6px; border: 0; border-radius: 8px; background: none; color: #7a8aa6; cursor: pointer; }
.auth-input__toggle:hover { color: var(--emi-blue); }
.auth-input__toggle:focus-visible { outline: none; box-shadow: var(--emi-focus); }
.auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 18px 0; font-size: 14px; }
.auth-check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.auth-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--emi-blue); }
.auth-submit { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; margin-top: 6px; padding: 16px; border: 0; border-radius: 12px; background: var(--emi-orange); color: #fff; font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; transition: background .15s, box-shadow .15s; }
.auth-submit:hover { background: var(--emi-orange-600); box-shadow: 0 10px 22px rgba(255,137,8,.3); }
.auth-submit:focus-visible { outline: none; box-shadow: var(--emi-focus); }
.auth-footnote { margin-top: 22px; text-align: center; color: #647795; font-size: 14px; }
.auth-footnote a { font-weight: 700; }
.auth-legal { margin-top: 26px; text-align: center; color: #71839f; font-size: 12px; }
.auth-captcha { margin-top: 16px; }

.auth-alert { position: relative; margin: 0 0 16px; padding: 12px 40px 12px 14px; border: 1px solid; border-radius: 12px; font-size: 13.5px; line-height: 1.5; }
.auth-alert .close { position: absolute; right: 12px; top: 8px; border: 0; background: none; font-size: 20px; line-height: 1; opacity: .5; cursor: pointer; color: inherit; }
.auth-alert.alert-success { background: #e7f8f1; border-color: #bfe9d6; color: #0b6b49; }
.auth-alert.alert-danger { background: #fdeeee; border-color: #f5c9c9; color: #a62626; }
.auth-alert.alert-info { background: #edf5ff; border-color: #dcebff; color: #0b4b91; }

@media (max-width: 1180px) {
    .auth-layout { grid-template-columns: 1fr 1fr; }
    .auth-hero__main { grid-template-columns: 1fr; }
    .auth-hero__art { display: none; }
}
@media (max-width: 780px) {
    .auth-layout { display: block; }
    .auth-hero { padding: 18px 20px; }
    .auth-hero::after, .auth-hero__main, .auth-hero footer { display: none; }
    .auth-hero header img { width: 140px; }
    .auth-hero header span { font-size: 13px; }
    .auth-panel { padding: 22px 18px 30px; }
    .auth-card__brand { display: none; }
    .auth-grid { grid-template-columns: 1fr; }
}
