/* Giao diện trang đăng nhập/quên mật khẩu, tham khảo phong cách ctv.sis.vn/Pnlogin
   (gradient xanh thương hiệu SIS + card kính mờ + input bo tròn). */

.auth-page {
    min-height: 100vh;
    margin: 0;
    background: radial-gradient(circle at 20% 20%, #1a7ae8 0%, transparent 45%),
                radial-gradient(circle at 80% 70%, #0a4fd6 0%, transparent 50%),
                linear-gradient(160deg, #0033a0 0%, var(--sis-primary) 45%, #003fcc 100%);
    position: relative;
    overflow-x: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
}

.auth-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.auth-dot {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
}

.auth-dot-1 { width: 6px; height: 6px; top: 18%; left: 10%; }
.auth-dot-2 { width: 4px; height: 4px; top: 65%; left: 15%; }
.auth-dot-3 { width: 5px; height: 5px; top: 40%; right: 12%; }

.auth-line {
    position: absolute;
    height: 1px;
    width: 220px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: rotate(-20deg);
}

.auth-line-1 { top: 30%; left: 5%; }
.auth-line-2 { top: 58%; right: 8%; }

.auth-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
}

.auth-logo {
    height: 90px;
    width: auto;
}

.auth-tagline {
    color: #fff;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.auth-card {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: 0 20px 45px rgba(0, 20, 90, 0.35);
}

.auth-card h3 {
    color: #fff;
    font-weight: 700;
    text-align: center;
}

.auth-card .auth-subtitle {
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Khung báo lỗi rõ ràng — trước đây dùng "text-warning small" (chữ vàng nhỏ) gần như
   không thấy được trên nền kính mờ xanh của .auth-card, khiến người dùng tưởng hệ thống
   "không phản hồi gì" khi đăng nhập sai/hết hạn token. Đổi sang khung nền đỏ rõ ràng.
   ASP.NET Core tự thêm class "validation-summary-valid" (không có lỗi) hoặc
   "validation-summary-errors" (có lỗi) — chỉ hiện khung khi thực sự có lỗi. */
.validation-summary-valid { display: none; }

.auth-error-box.validation-summary-errors {
    display: block;
    background: rgba(255, 59, 59, 0.18);
    border: 1px solid rgba(255, 99, 99, 0.6);
    color: #fff;
    font-weight: 600;
    border-radius: 0.6rem;
    padding: 0.6rem 0.9rem;
    margin-bottom: 1rem;
}

.auth-error-box ul {
    margin: 0;
    padding-left: 1.1rem;
}

.auth-input-group {
    position: relative;
    margin-bottom: 1rem;
}

.auth-input-group .auth-input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    opacity: 0.7;
    z-index: 3;
}

.auth-input-group .form-control {
    border-radius: 999px;
    padding: 0.65rem 1rem 0.65rem 2.75rem;
    border: none;
    background: #fff;
}

.auth-input-group .form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 188, 0, 0.4);
}

.auth-toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    color: var(--sis-primary);
    z-index: 3;
}

.auth-forgot-link {
    display: block;
    text-align: right;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.auth-forgot-link:hover {
    color: var(--sis-accent);
}

.btn-auth-submit {
    width: 100%;
    border-radius: 999px;
    padding: 0.7rem;
    font-weight: 600;
    background: linear-gradient(90deg, var(--sis-primary), #2f8dff);
    border: none;
    color: #fff;
}

.btn-auth-submit:hover {
    background: linear-gradient(90deg, var(--sis-primary-dark), var(--sis-primary));
    color: #fff;
}

.auth-secondary-text {
    text-align: center;
    margin-top: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.92rem;
}

.auth-secondary-text a {
    color: var(--sis-accent);
    font-weight: 600;
}

.auth-footer {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
}

.auth-contact-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--sis-primary);
    border-radius: 999px;
    padding: 0.4rem 1rem;
    font-weight: 600;
    text-decoration: none;
}

.auth-icon-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.auth-icon-circle img {
    width: 20px;
    height: 20px;
}
