html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body
{
  margin-bottom: 60px;
}

:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #1abc9c;
    --light-color: #ecf0f1;
    --dark-color: #34495e;
    --danger-color: #e74c3c;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
}

.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

    .login-page::before {
        content: '';
        position: absolute;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
        background-size: 30px 30px;
        animation: float 20s linear infinite;
        opacity: 0.3;
    }

.login-container {
    width: 100%;
    max-width: 420px;
    z-index: 1;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.6s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.hospital-logo {
    font-size: 42px;
    font-weight: 800;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

    .hospital-logo i {
        font-size: 48px;
        background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

.login-subtitle {
    color: #666;
    font-size: 16px;
    margin-bottom: 30px;
    text-align: center;
}

.alert-danger {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: shake 0.5s ease;
}

    .alert-danger i {
        color: var(--danger-color);
        font-size: 20px;
    }

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 10px;
    font-size: 14px;
}

    .form-label i {
        color: var(--primary-color);
        font-size: 16px;
    }

.input-group {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.input-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 18px;
    z-index: 1;
}

.form-control {
    border: none;
    padding: 15px 20px 15px 50px;
    font-size: 16px;
    background: white;
    width: 100%;
    transition: all 0.3s ease;
}

    .form-control:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    }

.password-toggle {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #95a5a6;
    cursor: pointer;
    font-size: 18px;
    transition: color 0.3s ease;
    z-index: 1;
}

    .password-toggle:hover {
        color: var(--primary-color);
    }

.btn-login {
    background: linear-gradient(45deg, var(--primary-color), #2980b9);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.3);
}

    .btn-login:hover {
        background: linear-gradient(45deg, #2980b9, var(--primary-color));
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
    }

    .btn-login i {
        font-size: 18px;
    }

.form-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #666;
}

.register-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

    .register-link:hover {
        color: #16a085;
        text-decoration: underline;
    }

    .register-link i {
        font-size: 14px;
    }

/* Decorations */
.floating-icon {
    position: absolute;
    font-size: 24px;
    color: rgba(255, 255, 255, 0.3);
    animation: float 6s ease-in-out infinite;
}

    .floating-icon:nth-child(1) {
        top: 10%;
        left: 10%;
        animation-delay: 0s;
    }

    .floating-icon:nth-child(2) {
        top: 20%;
        right: 15%;
        animation-delay: 1s;
    }

    .floating-icon:nth-child(3) {
        bottom: 30%;
        left: 20%;
        animation-delay: 2s;
    }

    .floating-icon:nth-child(4) {
        bottom: 20%;
        right: 10%;
        animation-delay: 3s;
    }

    .floating-icon:nth-child(5) {
        top: 40%;
        left: 5%;
        animation-delay: 4s;
    }

/* Animations */
@@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }

    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

/* Responsive */
@@media (max-width: 576px) {
    .login-card {
        padding: 30px 20px;
    }

    .hospital-logo {
        font-size: 32px;
    }

        .hospital-logo i {
            font-size: 36px;
        }
}

/* Loading animation for submit */
.btn-login.loading {
    position: relative;
    color: transparent;
}

    .btn-login.loading::after {
        content: '';
        position: absolute;
        width: 20px;
        height: 20px;
        border: 3px solid white;
        border-top-color: transparent;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

@@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Validation styles */
.field-validation-error {
    display: block;
    margin-top: 5px;
    font-size: 14px;
    color: var(--danger-color);
    animation: fadeIn 0.3s ease;
}

.input-wrapper {
    position: relative;
}

    .input-wrapper .form-control {
        padding-left: 50px;
    }

.input-group .input-wrapper {
    flex: 1;
}

.input-group-append {
    display: flex;
}

    .input-group-append .input-group-text {
        background: white;
        border: none;
        padding: 0 20px;
        cursor: pointer;
        color: #95a5a6;
        transition: color 0.3s ease;
        border-left: 1px solid #eee;
    }

        .input-group-append .input-group-text:hover {
            color: var(--primary-color);
        }
/* تخصيص القائمة التنقل */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    color: #007bff !important;
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
}

    .nav-link:hover {
        color: #007bff !important;
        transform: translateY(-2px);
    }

.dropdown-item {
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

    .dropdown-item:hover {
        background-color: #f8f9fa;
        padding-left: 1.5rem;
    }

/* تحسين responsiveness */
@media (max-width: 768px) {
    .dropdown-menu {
        border: none;
        box-shadow: none;
    }

    .navbar-nav {
        text-align: center;
    }
}

/* تخصيص الأيقونات */
.navbar-nav .fa {
    width: 20px;
    text-align: center;
}

/* تأثيرات active */
.nav-item.active .nav-link {
    color: #007bff !important;
    font-weight: bold;
}
/* Social Login Styles */
.social-login-separator {
    display: flex;
    align-items: center;
    margin: 25px 0;
    color: #95a5a6;
    font-size: 14px;
}

    .social-login-separator::before,
    .social-login-separator::after {
        content: '';
        flex: 1;
        height: 1px;
        background: #eee;
        margin: 0 15px;
    }

.social-login-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.btn-social {
    padding: 12px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .btn-social:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

.btn-google:hover {
    background: #db4437;
    color: white;
    border-color: #db4437;
}

.btn-microsoft:hover {
    background: #00a4ef;
    color: white;
    border-color: #00a4ef;
}

/* Forgot Password Modal */
.forgot-password-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.forgot-password-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    max-width: 400px;
    width: 90%;
    animation: slideUp 0.3s ease;
}

