/**
 * assets/css/auth.css
 * Version 1.0
 * - Gemeinsames Auth-Layout für Login / Register / Forgot / Reset / Verify
 * - Mobile first
 * - konsistente Card-, Form-, Alert- und Link-Styles
 */

.auth-page {
    padding: 32px 16px 48px;
}

.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
}

.auth-card {
    width: 100%;
    max-width: 520px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    padding: 24px 20px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.auth-card__header {
    margin-bottom: 20px;
}

.auth-card__header h1 {
    margin: 0 0 8px;
    font-size: 1.9rem;
    line-height: 1.2;
    color: #0f172a;
}

.auth-card__header p {
    margin: 0;
    color: #64748b;
    line-height: 1.5;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.96rem;
    font-weight: 700;
    color: #0f172a;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #ffffff;
    color: #0f172a;
    font-size: 1rem;
    line-height: 1.4;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    box-sizing: border-box;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.auth-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: -2px;
    cursor: pointer;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.4;
}

.auth-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    flex: 0 0 18px;
    accent-color: #2563eb;
    cursor: pointer;
}

.auth-checkbox span {
    display: inline-block;
    margin: 0;
}

.alert {
    border-radius: 12px;
    padding: 13px 14px;
    margin-bottom: 18px;
    font-size: 0.96rem;
    line-height: 1.45;
    border: 1px solid transparent;
}

.alert--error {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

.alert--success {
    background: #f0fdf4;
    color: #166534;
    border-color: #bbf7d0;
}

.auth-links {
    margin-top: 14px;
    text-align: center;
}

.auth-links a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.auth-links a:hover,
.auth-links a:focus {
    text-decoration: underline;
}

.btn-full {
    width: 100%;
}

.auth-note {
    margin-top: 16px;
    text-align: center;
    color: #64748b;
    line-height: 1.5;
}

.auth-debug {
    margin-top: 16px;
    border-top: 1px solid #e2e8f0;
    padding-top: 16px;
}

.auth-debug summary {
    cursor: pointer;
    font-weight: 700;
    color: #0f172a;
}

.auth-debug pre {
    margin: 10px 0 0;
    padding: 12px;
    border-radius: 12px;
    background: #f8fafc;
    color: #0f172a;
    overflow-x: auto;
    white-space: pre-wrap;
    font-size: 0.9rem;
    line-height: 1.45;
}

@media (min-width: 768px) {
    .auth-page {
        padding: 56px 20px 72px;
    }

    .auth-card {
        max-width: 560px;
        padding: 32px 30px;
    }

    .auth-card__header h1 {
        font-size: 2.1rem;
    }
}