/* Professional Login Page Styles */
:root {
    --proqual-blue: #025295;
    --proqual-blue-rgb: 2, 82, 149;
}

.login-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background: linear-gradient(135deg, var(--proqual-blue) 0%, var(--proqual-blue) 100%), url('/images/proqual-building.png') no-repeat center center fixed;
    background-size: cover;
    background-blend-mode: overlay;
    position: relative;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(var(--proqual-blue-rgb), 0.8), rgba(var(--proqual-blue-rgb), 0.6));
    z-index: 1;
}

.login-header {
    text-align: center;
    margin-bottom: 3rem;
    color: #ffffff;
    z-index: 2;
    position: relative;
    animation: fadeInDown 0.8s ease-out;
}

.login-header .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.login-header .logo span {
    font-family: 'Segoe UI', 'Arial', sans-serif !important;
    font-size: 2.5rem !important;
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    font-weight: 300 !important;
    letter-spacing: 2px !important;
}

.login-header h2 {
    font-size: 1.2rem;
    font-weight: 300;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
    margin: 0;
}

.login-form-container {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 3rem 2.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 420px;
    z-index: 2;
    position: relative;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.login-form .form-group {
    margin-bottom: 1.8rem;
}

.login-form .form-group label {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.8rem;
    display: block;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login-form input,
.login-form select {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #fafbfc;
    font-family: inherit;
}

.login-form input:focus,
.login-form select:focus {
    outline: none;
    border-color: var(--proqual-blue);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(var(--proqual-blue-rgb), 0.08), 0 4px 12px rgba(var(--proqual-blue-rgb), 0.15);
    transform: translateY(-1px);
}

.login-form input:hover,
.login-form select:hover {
    border-color: #c1cbd7;
    background-color: #ffffff;
}

.form-actions {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 2.5rem;
}

.forgot-password-link {
    margin-top: 1rem;
    text-align: right;
}

.forgot-password-link a {
    color: var(--proqual-blue);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.forgot-password-link a:hover {
    text-decoration: underline;
}

.form-actions .btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.form-actions .btn-primary {
    background: linear-gradient(135deg, var(--proqual-blue), var(--proqual-blue));
    color: white;
    box-shadow: 0 4px 15px rgba(var(--proqual-blue-rgb), 0.3);
}

.form-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--proqual-blue-rgb), 0.4);
    background: linear-gradient(135deg, var(--proqual-blue), var(--proqual-blue));
}

.form-actions .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(var(--proqual-blue-rgb), 0.3);
}

.error-message {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 1rem;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1), rgba(255, 107, 107, 0.05));
    border: 1px solid rgba(231, 76, 60, 0.2);
    border-radius: 10px;
    text-align: center;
    animation: slideInDown 0.3s ease-out;
    backdrop-filter: blur(5px);
}

.success-message {
    color: #27ae60;
    font-size: 0.9rem;
    margin-top: 1rem;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.1), rgba(46, 204, 113, 0.05));
    border: 1px solid rgba(39, 174, 96, 0.2);
    border-radius: 10px;
    text-align: center;
    animation: slideInDown 0.3s ease-out;
    backdrop-filter: blur(5px);
}

/* Loading indicator styles */
.loading-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 1rem;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(var(--proqual-blue-rgb), 0.1), rgba(var(--proqual-blue-rgb), 0.05));
    border: 1px solid rgba(var(--proqual-blue-rgb), 0.2);
    border-radius: 10px;
    color: var(--proqual-blue);
    font-size: 0.9rem;
    animation: slideInDown 0.3s ease-out;
    backdrop-filter: blur(5px);
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(var(--proqual-blue-rgb), 0.2);
    border-top: 2px solid var(--proqual-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Modern Animations */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* Professional Modal Styling */
.reset-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

.reset-modal-content {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    margin: 8% auto;
    padding: 2.5rem;
    border-radius: 20px;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: modalSlideIn 0.4s ease-out;
}

.reset-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.2rem;
    border-bottom: 2px solid rgba(225, 232, 237, 0.8);
}

.reset-modal-header h3 {
    color: #2c3e50;
    margin: 0;
    font-weight: 600;
    font-size: 1.4rem;
}

.reset-close {
    color: #95a5a6;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: all 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.reset-close:hover {
    color: #e74c3c;
    background-color: rgba(231, 76, 60, 0.1);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.reset-form .form-group {
    margin-bottom: 1.5rem;
}

.reset-form label {
    color: var(--proqual-blue);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.reset-form input,
.reset-form select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--medium-gray);
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s;
}

.reset-form input:focus,
.reset-form select:focus {
    outline: none;
    border-color: var(--proqual-blue);
    box-shadow: 0 0 0 3px rgba(var(--proqual-blue-rgb), 0.1);
}

.reset-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.reset-actions .btn {
    flex: 1;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
    .login-container {
        padding: 15px;
    }
    
    .login-header .logo span {
        font-size: 2rem !important;
        letter-spacing: 1px !important;
    }
    
    .login-header h2 {
        font-size: 1rem;
    }
    
    .login-form-container {
        padding: 2rem 1.5rem;
        margin: 0;
        border-radius: 16px;
        max-width: 100%;
    }
    
    .reset-modal-content {
        margin: 15% auto;
        padding: 2rem 1.5rem;
        border-radius: 16px;
        width: 95%;
    }
}

@media (max-width: 480px) {
    .login-header .logo span {
        font-size: 1.8rem !important;
    }
    
    .login-form-container {
        padding: 1.5rem 1.2rem;
        border-radius: 12px;
    }
    
    .login-form input,
    .login-form select {
        padding: 14px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .form-actions .btn {
        padding: 14px 20px;
    }
}

/* Professional Info Box Styling */
.login-info-box {
    margin-top: 1.5rem;
    padding: 1.2rem;
    background: linear-gradient(135deg, rgba(var(--proqual-blue-rgb), 0.1), rgba(var(--proqual-blue-rgb), 0.05));
    border-radius: 12px;
    border-left: 4px solid var(--proqual-blue);
    backdrop-filter: blur(5px);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.login-info-box h4 {
    margin: 0 0 0.8rem 0;
    color: var(--proqual-blue);
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.login-info-box p {
    margin: 0;
    font-size: 0.9rem;
    color: #34495e;
    line-height: 1.4;
}

/* Subtle hover effects for select options */
.login-form select option {
    padding: 8px;
    background-color: #ffffff;
    color: #2c3e50;
}

/* Focus states for better accessibility */
.login-form input:focus-visible,
.login-form select:focus-visible,
.form-actions .btn:focus-visible {
    outline: 2px solid var(--proqual-blue);
    outline-offset: 2px;
}