/* ============================================================
   Morvixa — Login screen
   ============================================================ */

.auth-wrap {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}
@media (max-width: 920px) { .auth-wrap { grid-template-columns: 1fr; } }

/* Left visual panel */
.auth-visual {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(600px 400px at 30% 20%, rgba(52,211,153,0.18), transparent 60%),
        linear-gradient(160deg, #16181f, #0c0d11);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 42px;
}
@media (max-width: 920px) { .auth-visual { display: none; } }

.auth-visual .brand { padding: 0; }
.auth-glow {
    position: absolute;
    width: 460px; height: 460px;
    border-radius: 50%;
    background: var(--accent-grad);
    filter: blur(120px);
    opacity: 0.18;
    bottom: -120px; inset-inline-end: -80px;
}
.auth-hero-title {
    font-size: 38px; font-weight: 800; line-height: 1.25;
    max-width: 420px; position: relative; z-index: 2;
}
.auth-hero-title span { color: var(--accent); }
.auth-hero-desc {
    color: var(--text-dim); margin-top: 14px; max-width: 380px;
    position: relative; z-index: 2;
}
.auth-features { display: flex; flex-direction: column; gap: 14px; position: relative; z-index: 2; }
.auth-feature { display: flex; align-items: center; gap: 12px; color: var(--text-dim); font-size: 14px; }
.auth-feature .fi {
    width: 34px; height: 34px; border-radius: 10px;
    background: var(--accent-soft); color: var(--accent);
    display: grid; place-items: center; flex-shrink: 0;
}
.auth-feature .fi svg { width: 18px; height: 18px; }

/* Right form panel */
.auth-form-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 32px 24px;
    position: relative;
}
.auth-form {
    width: 100%;
    max-width: 380px;
}
.auth-mobile-brand { display: none; }
@media (max-width: 920px) {
    .auth-mobile-brand { display: flex; justify-content: center; margin-bottom: 28px; }
}

.auth-lang {
    position: absolute;
    top: 24px; inset-inline-end: 24px;
}

.auth-title { font-size: 26px; font-weight: 800; }
.auth-subtitle { color: var(--muted); margin-top: 6px; margin-bottom: 28px; }

.field { margin-bottom: 18px; }
.field label {
    display: block; font-size: 13px; font-weight: 600;
    color: var(--text-dim); margin-bottom: 8px;
}
.input-wrap {
    display: flex; align-items: center; gap: 12px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0 16px;
    height: 54px;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.input-wrap:hover { border-color: var(--border-strong); }
.input-wrap:focus-within {
    border-color: var(--accent);
    background: var(--surface);
    box-shadow: 0 0 0 4px var(--accent-soft);
}
.input-wrap svg { width: 19px; height: 19px; color: var(--muted); flex-shrink: 0; transition: color .2s; }
.input-wrap:focus-within > svg:first-child { color: var(--accent); }
.input-wrap input {
    flex: 1; border: none; background: transparent; outline: none;
    color: var(--text); font-family: inherit; font-size: 15px;
    height: 100%; min-width: 0;
}
.input-wrap input::placeholder { color: var(--muted); }
.input-wrap .toggle-eye { background: none; border: none; cursor: pointer; color: var(--muted); padding: 4px; display: grid; place-items: center; }
.input-wrap .toggle-eye:hover { color: var(--text); }

/* Kill the white autofill background in Chrome/Edge */
.input-wrap input:-webkit-autofill,
.input-wrap input:-webkit-autofill:hover,
.input-wrap input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text);
    -webkit-box-shadow: 0 0 0 1000px var(--surface-2) inset;
    caret-color: var(--text);
    border-radius: 0;
    transition: background-color 5000s ease-in-out 0s;
}
.input-wrap:focus-within input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px var(--surface) inset;
}

.field-row {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 24px; font-size: 13px;
}
.checkbox { display: inline-flex; align-items: center; gap: 8px; color: var(--text-dim); cursor: pointer; }
.checkbox input { accent-color: var(--accent-2); width: 16px; height: 16px; }

.alert {
    display: flex; align-items: center; gap: 10px;
    background: var(--danger-soft);
    border: 1px solid rgba(248,113,113,0.25);
    color: var(--danger);
    padding: 12px 14px; border-radius: 12px;
    font-size: 13px; margin-bottom: 20px;
}
.alert svg { width: 18px; height: 18px; flex-shrink: 0; }

.auth-hint {
    margin-top: 22px; text-align: center;
    color: var(--muted); font-size: 12px;
}
