
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Login Container */
.login-container {
    padding: 20px 30px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    max-width: 650px;
    width: 100%;
    animation: slideUp 0.5s ease-out;
}

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

/* Header Section */
.login-header {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.login-logo {
    border-radius: 15px;
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 15px;
}

.login-header h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.login-header p {
    font-size: 14px;
    opacity: 0.9;
    margin-top: 8px;
}

.hospital-icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}

/* Form Section */
.login-body {
    padding: 40px 30px;
}

/* Form Groups */
.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.form-group input:hover {
    border-color: #e57373;
}

.form-group input:focus {
    outline: none;
    border-color: #d30000;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(211, 0, 0, 0.12);
}

.form-group input::placeholder {
    color: #999;
}

/* Input Icons */
.input-icon {
    position: absolute;
    right: 16px;
    top: 42px;
    color: #999;
    font-size: 18px;
}

/* Remember Me Checkbox */
.remember-me {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
    accent-color: #d30000;
}

.remember-me label {
    font-size: 14px;
    color: #666;
    cursor: pointer;
    user-select: none;
}

/* Login Button */
.login-btn,
.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
    margin-bottom: 10px;
}

.login-btn:hover:not(:disabled),
.btn-login:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.6);
}

.login-btn:active:not(:disabled),
.btn-login:active:not(:disabled) {
    transform: translateY(0);
}

.login-btn:disabled,
.btn-login:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Error Alert */
.error-alert {
    background-color: #fee;
    border: 1px solid #fcc;
    color: #c33;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
    animation: shake 0.3s ease-in-out;
}

.error-alert.show {
    display: block;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.error-alert strong {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
}

/* Success Alert */
.success-alert {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
}

.success-alert.show {
    display: block;
}

/* Footer */
.login-footer {
    background-color: #f8f9fa;
    padding: 20px 30px;
    text-align: center;
    border-top: 1px solid #e0e0e0;
}

.login-footer p {
    font-size: 13px;
    color: #666;
    margin: 0;
}

.login-footer a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

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

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.6s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 480px) {
    .login-container {
        border-radius: 15px;
    }

    .login-header {
        padding: 30px 20px;
    }

    .login-header h1 {
        font-size: 24px;
    }

    .login-body {
        padding: 30px 20px;
    }

    .login-footer {
        padding: 15px 20px;
    }
}

/* Focus Visible for Accessibility */
*:focus-visible {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    /* Can be implemented later if needed */
}
