/* =============================================
   Login Page Styles
   ============================================= */

:root {
    --hospital-primary: #0d6efd;
    --hospital-secondary: #6c757d;
    --hospital-success: #198754;
    --hospital-info: #0dcaf0;
    --hospital-gradient-start: #4e73df;
    --hospital-gradient-end: #224abe;
    --hospital-light-bg: #f8f9fc;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

.login-wrapper {
    display: flex;
    max-width: 1100px;
    width: 100%;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-left {
    flex: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.login-left::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -100px;
    right: -100px;
}

.login-left::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    bottom: -80px;
    left: -80px;
}

.hospital-illustration {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hospital-icon {
    font-size: 120px;
    margin-bottom: 30px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.hospital-illustration h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hospital-illustration p {
    font-size: 16px;
    opacity: 0.95;
    line-height: 1.6;
}

.login-right {
    flex: 1;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-logo {
    margin-bottom: 25px;
}

.login-logo img {
    height: 50px;
    max-width: 100%;
}

.login-header h3 {
    color: #333;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.login-header p {
    color: #6c757d;
    font-size: 15px;
    margin: 0;
}

.form-floating {
    margin-bottom: 20px;
    position: relative;
}

.form-floating input {
    height: 58px;
    border: 2px solid #e3e6f0;
    border-radius: 10px;
    font-size: 15px;
    padding: 18px 20px;
    transition: all 0.3s ease;
}

.form-floating input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
}

.form-floating label {
    padding: 18px 20px 18px 44px;
    font-size: 15px;
    color: #6c757d;
}

.input-group-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #667eea;
    font-size: 18px;
    z-index: 5;
    line-height: 1;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.form-floating input.with-icon {
    padding-left: 38px;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    font-size: 18px;
    z-index: 5;
    padding: 5px;
    transition: color 0.3s ease;
    line-height: 1;
    display: flex;
    align-items: center;
}

.password-toggle:hover {
    color: #667eea;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.form-check-label {
    color: #6c757d;
    font-size: 14px;
}

.forgot-link {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: #764ba2;
}

.btn-login {
    width: 100%;
    height: 58px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transition: left 0.5s ease;
}

.btn-login:hover::before {
    left: 0;
}

.btn-login span {
    position: relative;
    z-index: 1;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: #e3e6f0;
}

.divider span {
    background: white;
    padding: 0 15px;
    color: #6c757d;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.features-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.features-list li {
    padding: 12px 0;
    display: flex;
    align-items: center;
    color: white;
    font-size: 15px;
}

.features-list li i {
    margin-right: 15px;
    font-size: 24px;
    color: rgba(255, 255, 255, 0.9);
}

.alert-custom {
    border-radius: 10px;
    border: none;
    padding: 12px 20px;
    margin-bottom: 20px;
    display: none;
}

.login-secure-text {
    color: #6c757d;
    font-size: 13px;
}

@media (max-width: 768px) {
    .login-left {
        display: none;
    }

    .login-right {
        padding: 40px 30px;
    }

    .login-wrapper {
        margin: 20px;
    }
}

.loading-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn-login.loading .loading-spinner {
    display: inline-block;
}

