/* Login Page Styles - Medical Theme */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

.login-container {
    min-height: 100vh;
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    margin: 0;
    position: fixed;
    top: 0;
    left: 0;
    overflow: hidden;
}

.login-wrapper {
    display: flex;
    width: 100%;
    max-width: 1400px;
    height: 90vh;
    max-height: 800px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    margin: 20px;
}

.login-left {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: white;
}

.login-right {
    flex: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-image:
        linear-gradient(135deg, #0077be 0%, #005a8f 100%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-card {
    background: white;
    width: 100%;
    max-width: 440px;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo {
    max-width: 280px;
    height: auto;
    margin-bottom: 30px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.login-title {
    font-size: 28px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #1e40af 0%, #0ea5e9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.login-subtitle {
    font-size: 16px;
    color: #6c757d;
    font-weight: 400;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 0;
}

.login-container .form-group {
    margin-bottom: 20px;
}

.login-container .form-label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
}

.login-container .form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.login-container .form-control:focus {
    outline: none;
    border-color: #3b82f6;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.login-container .form-control::placeholder {
    color: #adb5bd;
}

.validation-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 16px;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.btn-login:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.6);
}

.btn-login:active:not(:disabled) {
    transform: translateY(0);
}

.btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

.alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c2c7;
    color: #842029;
}

.login-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.login-footer p {
    color: #6c757d;
    font-size: 13px;
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 576px) {
    .login-card {
        padding: 30px 25px;
        border-radius: 15px;
    }

    .login-logo {
        max-width: 150px;
    }

    .login-title {
        font-size: 24px;
    }

    .login-subtitle {
        font-size: 14px;
    }

    .login-container .form-control {
        padding: 10px 14px;
        font-size: 14px;
    }

    .btn-login {
        padding: 12px;
        font-size: 15px;
    }
}

@media (max-width: 400px) {
    .login-wrapper {
        flex-direction: column;
        height: auto;
        max-height: none;
    }

    .login-right {
        display: none;
    }

    .login-card {
        padding: 25px 20px;
    }

    .login-logo {
        max-width: 180px;
    }
}

/* Tablet */
@media (max-width: 968px) {
    .login-wrapper {
        flex-direction: column;
        height: auto;
        max-height: none;
    }

    .login-right {
        min-height: 200px;
    }

    .login-left {
        padding: 30px 20px;
    }
}

/* Accessibility improvements */
.login-container .form-control:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.btn-login:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Medical Theme Styles */
.medical-overlay {
    text-align: center;
    color: white;
    padding: 40px;
    z-index: 1;
}

.medical-icon {
    width: 180px;
    height: 180px;
    margin: 0 auto 30px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.3);
    animation: pulse 3s ease-in-out infinite;
}

.medical-icon svg {
    width: 90px;
    height: 90px;
    color: white;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 20px 10px rgba(255, 255, 255, 0.1);
    }
}

.medical-overlay h2 {
    font-size: 32px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.medical-overlay p {
    font-size: 18px;
    opacity: 0.95;
    line-height: 1.6;
    max-width: 450px;
    margin: 0 auto;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

.medical-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 40px;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
}

.btn-medical {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 30px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.btn-medical:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.btn-medical:active {
    transform: translateY(0);
}

.btn-medical svg {
    flex-shrink: 0;
}

/* Forgot/Reset Password Page Styles */
.forgot-title {
    font-size: 24px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.forgot-instruction {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 25px;
    text-align: center;
    line-height: 1.6;
}

.forgot-links {
    margin-top: 25px;
    text-align: center;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #3b82f6;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.back-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

.back-link svg {
    transition: transform 0.2s ease;
}

.back-link:hover svg {
    transform: translateX(-3px);
}

.alert-success {
    background-color: #d1e7dd;
    border: 1px solid #badbcc;
    color: #0f5132;
    display: flex;
    align-items: center;
}

.form-text {
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.text-muted {
    color: #6c757d;
}
