/* ============================================================
   Auth Page CSS
   ============================================================ */
.auth-page {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #172554 100%);
}

.auth-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}
.bg-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    animation: float 10s ease-in-out infinite;
}
.shape-1 {
    width: 500px; height: 500px;
    top: -200px; left: -200px;
    background: radial-gradient(circle, rgba(59,130,246,0.25) 0%, transparent 70%);
}
.shape-2 {
    width: 400px; height: 400px;
    bottom: -150px; right: -150px;
    animation-delay: 3s;
    background: radial-gradient(circle, rgba(139,92,246,0.2) 0%, transparent 70%);
}
.shape-3 {
    width: 300px; height: 300px;
    top: 50%; left: 60%;
    animation-delay: 6s;
    background: radial-gradient(circle, rgba(6,182,212,0.15) 0%, transparent 70%);
}
@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-20px, -30px); }
}

.auth-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 20px;
    max-width: 420px;
    margin: 0 auto;
}

.auth-box {
    background: rgba(255,255,255,0.97);
    border-radius: 20px;
    padding: 36px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    animation: slideIn 0.5s ease;
    width: 100%;
}
@keyframes slideIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-header {
    text-align: center;
    margin-bottom: 24px;
}
.auth-logo {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border: 3px solid rgba(255,255,255,0.4);
    background: #fff;
}
.auth-header h3 {
    font-weight: 800;
    font-size: 20px;
    color: #0f172a;
    margin: 14px 0 2px;
    letter-spacing: -0.3px;
}
.auth-header p {
    color: #64748b;
    font-size: 14px;
    margin: 0;
}

/* Form */
.auth-form .form-label {
    font-weight: 600;
    font-size: 13px;
    color: #374151;
    margin-bottom: 5px;
}

.auth-form .form-control,
.auth-form .input-group-text {
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
    border: 1.5px solid #e2e8f0;
}

.auth-form .input-group-text {
    background: #f8fafc;
    border-right: none;
    color: #94a3b8;
}

.auth-form .input-group .form-control {
    border-left: none;
}

.auth-form .form-control:focus {
    box-shadow: 0 0 0 4px rgba(59,130,246,0.08);
    border-color: #3b82f6;
}
.auth-form .input-group:focus-within .input-group-text {
    border-color: #3b82f6;
    color: #3b82f6;
    background: #eff6ff;
}

/* Captcha row */
.captcha-box {
    border: 1.5px solid #e2e8f0;
    height: 42px;
    background: #f8fafc;
    border-radius: 10px;
    overflow: hidden;
}
.captcha-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}
.captcha-input {
    width: 100px;
    text-align: center;
    font-weight: 700;
    letter-spacing: 2px;
}
.refresh-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}
.refresh-btn:hover {
    background: #f1f5f9;
    transform: rotate(180deg);
}

/* Button */
.auth-btn {
    border-radius: 10px;
    padding: 11px;
    font-weight: 700;
    font-size: 15px;
    margin-top: 6px;
    background: #0d6efd;
    border: none;
    transition: all 0.2s;
}
.auth-btn:hover {
    background: #0b5ed7;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13,110,253,0.3);
}

.auth-footer {
    font-size: 13px;
    text-align: center;
    margin-top: 18px;
    color: #64748b;
}
.auth-footer a {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 600;
}

/* Form check */
.form-check-input {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    border: 2px solid #e2e8f0;
    cursor: pointer;
}
.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}
.form-check-label {
    font-size: 13px;
    color: #64748b;
    margin-left: 6px;
}

/* Alert inside auth */
.auth-box .alert {
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    border: none;
}

/* Responsive */
@media (max-width: 576px) {
    .auth-box {
        padding: 24px 20px;
    }
    .auth-header h3 {
        font-size: 18px;
    }
    .auth-logo {
        width: 60px;
        height: 60px;
    }
    .captcha-input {
        width: 80px;
        font-size: 13px;
    }
    .refresh-btn {
        width: 38px;
        height: 38px;
    }
}

/* Dark mode */
[data-bs-theme="dark"] .auth-box {
    background: rgba(30, 41, 59, 0.97);
}
[data-bs-theme="dark"] .auth-header h3 {
    color: #f1f5f9;
}
[data-bs-theme="dark"] .auth-header p {
    color: #94a3b8;
}
[data-bs-theme="dark"] .auth-form .form-label {
    color: #e2e8f0;
}
[data-bs-theme="dark"] .auth-form .form-control {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}
[data-bs-theme="dark"] .auth-form .input-group-text {
    background: #1e293b;
    border-color: #334155;
    color: #94a3b8;
}
[data-bs-theme="dark"] .captcha-box {
    background: #1e293b;
    border-color: #334155;
}
[data-bs-theme="dark"] .form-check-label {
    color: #94a3b8;
}
