/*
 * Trang đăng nhập / đăng ký.
 *
 * Tách khỏi layout.css vì đây là bố cục duy nhất không có thanh điều hướng:
 * một khung giữa màn hình, không phụ thuộc lưới của trang quản trị.
 */

.auth {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    padding: var(--space-6) var(--space-4);
    background:
        radial-gradient(1100px 560px at 50% -10%, var(--accent-soft), transparent 70%),
        var(--bg-app);
}

.auth__panel {
    width: min(460px, 100%);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: var(--space-6);
    display: grid;
    gap: var(--space-5);
}

.auth__brand {
    display: block;
    text-align: center;
}

.auth__logo {
    height: 44px;
    width: auto;
    object-fit: contain;
}

.auth__head {
    display: grid;
    gap: var(--space-1);
    text-align: center;
}

.auth__title {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--text-primary);
}

.auth__subtitle {
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: 1.55;
}

.auth__form {
    display: grid;
    gap: var(--space-4);
}

/* Hai trường phụ đứng cạnh nhau, tự xuống dòng trên màn hình hẹp. */
.auth__row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-4);
}

.auth__submit {
    width: 100%;
    justify-content: center;
    margin-top: var(--space-1);
}

.auth__switch {
    text-align: center;
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.auth__footer {
    font-size: var(--text-xs);
    color: var(--text-muted);
}
