/* ============================================================
   Auth-Screens Layout (Admin-Login, Passwort-Reset, Customer-Login)
   Erwartet tokens.css als vorher geladen (nutzt --color-* Variablen).
   ============================================================ */

/* ---- Root Layout ---- */
.auth-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

/* ---- Brand Panel (links, Aubergine) ---- */
.auth-brand-panel {
    background: var(--brand-aubergine);
    color: #fff;
    padding: 56px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.auth-brand-decor {
    position: absolute;
    top: -80px;
    right: -120px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    border: 40px solid var(--color-primary);
    opacity: 0.18;
    pointer-events: none;
}

.auth-brand-logo {
    height: 84px;
    align-self: flex-start;
    position: relative;
}

.auth-brand-content {
    position: relative;
}

.auth-brand-eyebrow {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-primary-pastel);
    line-height: 1;
    margin: 0;
}

.auth-brand-headline {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 56px;
    line-height: 0.95;
    color: #fff;
    margin: 16px 0 14px;
    max-width: 480px;
}

.auth-brand-copy {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    max-width: 380px;
    margin: 0;
}

.auth-brand-footer {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    position: relative;
}

/* ---- Form Panel (rechts, hell) ---- */
.auth-form-panel {
    background: var(--color-surface-0);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    min-height: 100vh;
}

.auth-form-inner {
    width: 100%;
    max-width: 380px;
}

.auth-form-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 40px;
    color: var(--brand-aubergine);
    margin: 0 0 6px;
    line-height: 1;
}

.auth-form-subtitle {
    color: var(--color-text-muted);
    margin: 0 0 28px;
    font-size: 15px;
    line-height: 1.5;
}

.auth-form-subtitle strong {
    color: var(--color-text-primary);
    font-weight: 700;
}

/* ---- Form ---- */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-form-label {
    display: block;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    color: var(--brand-aubergine);
    margin: 0 0 6px;
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
    font-family: var(--font-body);
    font-size: 16px;
    padding: 12px 14px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--portal-radius-sm);
    background: #fff;
    width: 100%;
    transition: border-color var(--dur-fast) var(--ease-out),
                box-shadow var(--dur-fast) var(--ease-out);
}

.auth-form input[type="email"]:focus,
.auth-form input[type="password"]:focus,
.auth-form input[type="text"]:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(228, 74, 31, 0.15);
}

/* ---- Zeile: Checkbox links / Forgot-Link rechts ---- */
.auth-form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.auth-form-remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
    color: var(--color-text-secondary);
}

.auth-form-remember input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--color-border-strong);
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    transition: background var(--dur-fast) var(--ease-out),
                border-color var(--dur-fast) var(--ease-out);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin: 0;
}

.auth-form-remember input[type="checkbox"]:checked {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.auth-form-remember input[type="checkbox"]:checked::after {
    content: "✓";
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.auth-form-remember input[type="checkbox"]:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(228, 74, 31, 0.15);
}

.auth-form-forgot {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--dur-fast) var(--ease-out);
}

.auth-form-forgot:hover {
    color: var(--color-primary-hover);
}

/* ---- Primary Button mit Marken-Glow ---- */
.btn-auth-primary {
    padding: 15px 32px;
    font-size: 18px;
    font-weight: 700;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: var(--shadow-brand);
    transition: transform var(--dur-fast) var(--ease-out),
                box-shadow var(--dur-fast) var(--ease-out);
    margin-top: 6px;
}

.btn-auth-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 36px rgba(228, 74, 31, 0.35);
}

.btn-auth-primary:active {
    transform: translateY(0);
}

.btn-auth-primary i,
.btn-auth-primary svg {
    width: 18px;
    height: 18px;
}

/* ---- Fehler-Anzeige ---- */
.auth-form-error {
    color: var(--color-danger);
    background: var(--color-danger-soft);
    border: 1px solid var(--color-danger);
    border-radius: var(--portal-radius-sm);
    padding: 10px 14px;
    font-size: 14px;
    margin: 0 0 12px;
}

/* ---- Zurück-Link (unter Form) ---- */
.auth-form-back {
    display: inline-block;
    margin-top: 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--dur-fast) var(--ease-out);
}

.auth-form-back:hover {
    color: var(--color-primary-hover);
}

/* ---- Info-Text unter Button (Customer-Login) ---- */
.auth-form-info {
    font-size: 13px;
    color: var(--color-text-muted);
    margin: 12px 0 0;
    line-height: 1.5;
}

/* ---- Success-Icon-Container (Sent-Screens) ---- */
.auth-form-icon-success {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--color-success-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 24px;
}

.auth-form-icon-success i,
.auth-form-icon-success svg {
    width: 32px;
    height: 32px;
    color: var(--color-success);
}

/* ---- Responsive (< 768px) ---- */
@media (max-width: 768px) {
    .auth-layout {
        grid-template-columns: 1fr;
    }
    .auth-brand-panel {
        min-height: auto;
        padding: 32px;
        order: 2;
    }
    .auth-form-panel {
        order: 1;
        min-height: auto;
        padding: 32px;
    }
    .auth-brand-headline {
        font-size: 36px;
    }
    .auth-form-title {
        font-size: 32px;
    }
    .auth-brand-logo {
        height: 60px;
    }
    .auth-brand-decor {
        width: 260px;
        height: 260px;
        top: -60px;
        right: -80px;
        border-width: 30px;
    }
}
