/* ============================================================
   Auth Pages — Sky Blue Premium Theme
   ============================================================ */

.auth-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(186, 230, 253, 0.2);
    overflow: hidden;
    margin-top: 2rem;
    margin-bottom: 4rem;
}

.auth-header {
    background: linear-gradient(135deg, #0c4a6e 0%, #075985 100%);
    color: #ffffff;
    padding: 2rem;
    text-align: center;
    border-bottom: none;
}

.auth-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.5px;
}

.auth-body {
    padding: 3rem 4rem;
}

.form-label {
    font-weight: 700;
    color: #334155;
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
}

.form-control {
    border-radius: 12px;
    padding: 0.8rem 1rem;
    border: 1.5px solid #e2e8f0;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

.auth-btn {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: #fff;
    border: none;
    padding: 0.8rem 2.5rem;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #fff;
}

.auth-footer-text {
    text-align: center;
    margin-top: 2rem;
    color: #64748b;
    font-size: 0.95rem;
}

.auth-footer-text a {
    color: #0ea5e9;
    text-decoration: none;
    font-weight: 700;
}

.auth-footer-text a:hover {
    text-decoration: underline;
}

/* Captcha styling */
#captchaImg {
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

#reloadCaptcha {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #64748b;
    transition: all 0.2s;
}

#reloadCaptcha:hover {
    background: #e2e8f0;
    color: #0c4a6e;
}

/* Password toggle */
.password-input-group {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.password-toggle-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    cursor: pointer;
    z-index: 1000;
    transition: color 0.2s, transform 0.2s;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto !important;
}

.password-toggle-icon:hover {
    color: #0ea5e9;
    transform: translateY(-50%) scale(1.1);
}

/* Ensure input doesn't hide text behind icon */
.password-input-group .form-control {
    padding-right: 45px !important;
}

.password-toggle-icon i {
    font-size: 1.1rem;
    pointer-events: none; /* Let the span handle the click */
}
