* {
    box-sizing: border-box;
}

body.auth-page {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(135deg, #0f172a, #1d4ed8);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: #0f172a;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.25);
}

.auth-card.auth-card-wide {
    max-width: 760px;
}

.auth-brand {
    margin-bottom: 24px;
    text-align: center;
}

.auth-brand h1 {
    margin: 0 0 8px;
    font-size: 30px;
    color: #111827;
}

.auth-brand p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

.auth-alert {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #fee2e2;
    color: #b91c1c;
    font-size: 14px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

.form-group input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.auth-button {
    border: none;
    border-radius: 10px;
    padding: 13px 16px;
    background: #2563eb;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.auth-button:hover {
    background: #1d4ed8;
}

.auth-footer {
    margin-top: 18px;
    text-align: center;
    color: #64748b;
    font-size: 12px;
}

.auth-footer a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 700;
}

.auth-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.auth-section {
    margin-bottom: 18px;
}

.auth-section h2 {
    margin: 0 0 12px;
    font-size: 18px;
    color: #111827;
}

.auth-section p {
    margin: 0 0 16px;
    color: #64748b;
    font-size: 13px;
}

.auth-alert.success {
    background: #dcfce7;
    color: #166534;
}

.full-span {
    grid-column: 1 / -1;
}

.auth-helper {
    margin-top: 8px;
    font-size: 13px;
    color: #64748b;
}

@media (max-width: 768px) {
    .auth-card.auth-card-wide {
        max-width: 100%;
        padding: 24px;
    }

    .auth-grid {
        grid-template-columns: 1fr;
    }
}

.auth-footer code {
    color: #1e293b;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 6px;
}
