/* Estreka — sisselogimine/registreerimine (navy-steel split-paneel)
   Vt: Sisselogimine.dc.html, Registreerimine.dc.html */

.auth-split {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 5fr 6fr;
}

/* --- Vasak: navy brändipaneel --- */
.auth-brand {
    background: linear-gradient(150deg, #1a5580 0%, #0c2c42 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px;
    color: #fff;
}

.auth-brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-brand-plate {
    background: #fff;
    padding: 6px;
    display: flex;
}

.auth-brand-plate img {
    height: 40px;
    width: auto;
    display: block;
}

.auth-brand-name {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: .04em;
}

.auth-brand-mid { position: relative; z-index: 1; }

.auth-brand-label {
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--on-navy-light, #9cc4dd);
    font-weight: 700;
    margin-bottom: 16px;
}

.auth-brand-mid h1 {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
    color: #fff;
}

.auth-brand-mid p {
    font-size: 15px;
    color: rgba(255, 255, 255, .8);
    max-width: 400px;
}

.auth-perks {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 400px;
}

.auth-perk {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, .85);
}

.auth-perk-check {
    width: 26px;
    height: 26px;
    background: rgba(255, 255, 255, .12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--on-navy-light, #9cc4dd);
}

.auth-perk-check .ds-icon { width: 15px; height: 15px; }

.auth-brand-deco {
    position: absolute;
    right: -80px;
    bottom: -80px;
    width: 360px;
    height: 360px;
    background: repeating-linear-gradient(45deg, rgba(255,255,255,.04),
        rgba(255,255,255,.04) 14px, transparent 14px, transparent 28px);
}

.auth-brand-copy {
    font-size: 12px;
    color: rgba(255, 255, 255, .5);
    position: relative;
    z-index: 1;
}

/* --- Parem: vorm --- */
.auth-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    background: #fff;
}

.auth-form-box {
    width: 100%;
    max-width: 400px;
}

.auth-form-eyebrow {
    font-size: 12px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gray-500, #64748b);
    font-weight: 600;
    margin-bottom: 8px;
}

.auth-form-box h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--gray-900, #0f172a);
    margin-bottom: 28px;
}

.auth-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.auth-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700, #334155);
    margin-bottom: 6px;
}

.auth-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.auth-label-row .auth-label { margin-bottom: 0; }

.auth-forgot {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-500, #64748b);
    text-decoration: none;
}

.auth-forgot:hover { color: var(--primary-color, #1a5580); }

.auth-input {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--gray-300, #cbd5e1);
    background: #fff;
    font-size: 14px;
    color: var(--gray-900, #0f172a);
    margin-bottom: 16px;
    font-family: inherit;
}

.auth-input:focus {
    outline: none;
    border-color: var(--primary-color, #1a5580);
}

.auth-check {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    color: var(--gray-600, #475569);
    margin-bottom: 24px;
    cursor: pointer;
}

.auth-check input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color, #1a5580);
}

.auth-submit {
    width: 100%;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    background: var(--primary-color, #1a5580);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
}

.auth-submit:hover { background: var(--primary-dark, #103a57); }

.auth-submit .ds-icon { width: 18px; height: 18px; }

.auth-alt {
    text-align: center;
    font-size: 14px;
    color: var(--gray-500, #64748b);
    margin-top: 24px;
}

.auth-alt a {
    font-weight: 700;
    color: var(--primary-color, #1a5580);
    text-decoration: none;
}

.auth-error {
    border: 1px solid #fecaca;
    border-left: 3px solid var(--danger-color, #ef4444);
    background: #fef2f2;
    color: #991b1b;
    font-size: 14px;
    padding: 12px 14px;
    margin-bottom: 20px;
}

.auth-success {
    border: 1px solid var(--accent-border, #cfe0ea);
    border-left: 3px solid var(--primary-color, #1a5580);
    background: var(--accent-bg, #eef4f8);
    color: var(--primary-dark, #103a57);
    font-size: 14px;
    padding: 12px 14px;
    margin-bottom: 20px;
}

.auth-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, .7);
    text-decoration: none;
}

.auth-back:hover { color: #fff; }

/* --- Responsive --- */
@media (max-width: 900px) {
    .auth-split { grid-template-columns: 1fr; }
    .auth-brand {
        padding: 24px 20px;
        gap: 20px;
    }
    .auth-brand-mid h1 { font-size: 26px; }
    .auth-brand-copy { display: none; }
    .auth-form-panel { padding: 28px 16px; }
}

@media (max-width: 600px) {
    .auth-field-row { grid-template-columns: 1fr; gap: 0; }
}
