body {
    background: #f8f9fa;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    color: #00015c !important;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 30px 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 1, 92, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    min-width: 200px;
}

.loading-overlay.show {
    opacity: 1;
    visibility: visible;
}

.loading-content {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #00015c;
}

.loading-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(0, 1, 92, 0.2);
    border-top: 2px solid #00015c;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    flex-shrink: 0;
}

.loading-text-content {
    display: flex;
    flex-direction: column;
}

.loading-text {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
    color: #00015c;
}

.loading-subtext {
    font-size: 0.8rem;
    color: #7476d6;
    margin-top: 2px;
}

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

/* Background decoration spiral */
body::before {
    content: '';
    position: fixed;
    width: 500px;
    height: 500px;
    background-image: url('../img/espiral.png');
    background-size: contain;
    background-repeat: no-repeat;
    top: -100px;
    left: -300px;
    z-index: -1;
    opacity: 0.2;
    
}

.text-primary{
    color: #00015c !important;
}
.text-secondary{
    color: #7476d6 !important;
}
.text-secondary:hover{
    color: #02045C !important;
}

.navbar {
    padding: 1.5rem 0;
}

.logo {
    height: 24px;
}

.header-login-btn {
    background: #7476d6;
    color: white !important;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none !important;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.header-login-btn:hover {
    background:  #02045c;
    color: white !important;
}

.min-vh-75 {
    min-height: 75vh;
}

/* Login form without card styling */
.login-form-container {
    padding: 3rem 2rem;
}

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

.form-label {
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
}

.form-control {
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: #02045c;;
    box-shadow: 0 0 0 0.2rem rgba(51, 102, 204, 0.25);
    outline: none;
}

.btn-primary {
    background: #02045c;
    border-color: #02045c;
    border-radius: 8px;
    padding: 0.875rem 1rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.btn-primary:hover:not(:disabled) {
    background: #7476d6;
    border-color: #7476d6;
}

.btn-primary:disabled {
    background: #ccc;
    border-color: #ccc;
    cursor: not-allowed;
}

.container-alert{
    position: absolute;
    top: 0px;
}

.password-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
    z-index: 2;
}

.forgot-password {
    text-decoration: none;
    font-size: 0.9rem;
}

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

/* Doctor illustration */
.doctor-illustration {
    max-width: 400px;
    margin: 0 auto;
}

.doctor-container {
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.doctor-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Hide success alerts */
.alert {
    display: none !important;
}

/* Responsive design */
@media (max-width: 991px) {
    .row.no-break {
        flex-wrap: nowrap !important;
    }
    
    .col-lg-6, .col-lg-5 {
        flex: 0 0 auto;
    }
    
    .doctor-section {
        min-width: 300px;
        max-width: 400px;
    }
    
    .login-section {
        min-width: 320px;
        flex: 1;
    }
    
    .login-form-container {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .doctor-section {
        min-width: 250px;
    }
    
    .login-section {
        min-width: 280px;
    }
    
    .login-form-container {
        padding: 1.5rem 1rem;
    }
    
    .navbar {
        padding: 1rem 0;
    }
}