/* ========== Login Page ========== */
.login-body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    max-width: 440px;
    width: 100%;
}

/* Input focus effect */
.login-card .form-control:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
}

/* Primary button gradient */
.btn-login {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border: none;
    color: #fff;
    transition: all 0.3s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
    color: #fff;
}

/* Error message animation */
.field-error {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    color: #dc3545;
    font-size: 0.85rem;
}

.field-error.show {
    opacity: 1;
    max-height: 40px;
    margin-top: 4px;
}

/* Disable Bootstrap validation background icon on inputs with toggle button */
.has-toggle-password .form-control.is-invalid {
    background-image: none;
    padding-right: 2.5rem;
}

/* Toggle password button */
.toggle-password {
    border: none;
    background: none;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    cursor: pointer;
    z-index: 5;
}

.toggle-password:hover {
    color: #4b5563;
}

/* Switch links (register / forgot) */
.auth-switch-links a {
    color: #3b82f6;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.auth-switch-links a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Panel title */
.auth-panel-title {
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1.25rem;
    color: #1f2937;
}

/* Back to login link */
.back-to-login {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #6b7280;
    font-size: 0.875rem;
    text-decoration: none;
    margin-bottom: 1rem;
    transition: color 0.2s;
}

.back-to-login:hover {
    color: #3b82f6;
}

/* Captcha overlay */
.captcha-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.captcha-overlay.show {
    display: flex;
}

.captcha-modal {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.captcha-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.captcha-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1f2937;
}

.captcha-close {
    border: none;
    background: none;
    font-size: 1.4rem;
    color: #9ca3af;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
}

.captcha-close:hover {
    color: #4b5563;
}

/* Panel fade */
.auth-panel {
    display: none;
}

.auth-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Input group icon */
.input-icon-left {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    z-index: 5;
    pointer-events: none;
}

.input-with-icon {
    padding-left: 2.5rem;
}
