/* Login & Register — design layer only (#5C0632) */

.auth-page {
    min-height: 70vh;
    padding: 48px 0 64px;
    background:
        linear-gradient(180deg, #f8f9fc 0%, #ffffff 45%, #f3f4f8 100%);
    position: relative;
}

.auth-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(92, 6, 50, 0.06), transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(31, 31, 46, 0.05), transparent 38%);
    pointer-events: none;
}

.auth-page .container {
    position: relative;
    z-index: 1;
}

.auth-logo-wrap {
    text-align: center;
    margin-bottom: 28px;
}

.auth-logo-wrap a {
    display: inline-block;
    padding: 14px 22px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(31, 31, 46, 0.08);
    border: 1px solid rgba(92, 6, 50, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-logo-wrap a:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(31, 31, 46, 0.12);
}

.auth-logo-wrap img {
    max-width: 180px;
    height: auto;
}

.auth-card {
    border-radius: 16px !important;
    border: 1px solid rgba(92, 6, 50, 0.1) !important;
    box-shadow: 0 22px 48px rgba(31, 31, 46, 0.1) !important;
    overflow: hidden;
}

.auth-card-top {
    height: 5px;
    background: linear-gradient(90deg, #1f1f2e, #5C0632, #7a0a43);
}

.auth-card-body {
    padding: 32px 28px !important;
}

.auth-card-title {
    font-weight: 800;
    color: #1f1f2e;
    margin-bottom: 6px;
    text-align: center;
}

.auth-card-subtitle {
    text-align: center;
    color: #6c757d;
    font-size: 0.92rem;
    margin-bottom: 24px;
}

.auth-page .form-label {
    font-weight: 600;
    color: #1f1f2e;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.auth-page .form-control {
    height: 48px;
    border-radius: 8px;
    border-color: #dde2e8;
    padding: 10px 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-page .form-control:focus {
    border-color: #5C0632;
    box-shadow: 0 0 0 0.15rem rgba(92, 6, 50, 0.12);
}

.auth-page .form-check-input:checked {
    background-color: #5C0632;
    border-color: #5C0632;
}

.auth-page .form-check-input:focus {
    box-shadow: 0 0 0 0.15rem rgba(92, 6, 50, 0.2);
}

.auth-page .form-check-label {
    color: #495057;
    font-size: 0.9rem;
}

.auth-page .btn-primary {
    color: #fff !important;
    background: linear-gradient(135deg, #5C0632, #7a0a43) !important;
    border: none !important;
    border-radius: 8px;
    font-weight: 700;
    padding: 12px 16px;
    letter-spacing: 0.2px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-page .btn-primary:hover,
.auth-page .btn-primary:focus {
    color: #fff !important;
    background: linear-gradient(135deg, #4a0528, #5C0632) !important;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(92, 6, 50, 0.3);
}

.auth-page .auth-link {
    color: #5C0632 !important;
    font-weight: 600;
    text-decoration: none;
}

.auth-page .auth-link:hover {
    color: #3b0822 !important;
    text-decoration: underline;
}

.auth-page .auth-muted-link {
    color: #6c757d !important;
    font-size: 0.88rem;
    text-decoration: none;
}

.auth-page .auth-muted-link:hover {
    color: #5C0632 !important;
    text-decoration: underline;
}

.auth-page .auth-switch-text {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 0;
    color: #6c757d;
    font-size: 0.92rem;
}

.auth-page .text-danger {
    font-size: 0.85rem;
}

.auth-page .text-success {
    font-size: 0.9rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: #adb5bd;
    font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e9ecef;
}

.auth-back-home {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: #6c757d;
    font-size: 0.88rem;
    text-decoration: none;
}

.auth-back-home:hover {
    color: #5C0632;
    text-decoration: none;
}

@media (max-width: 575.98px) {
    .auth-page {
        padding: 32px 0 48px;
    }

    .auth-card-body {
        padding: 24px 18px !important;
    }
}
