﻿
:root {
    --primary-color: #0d6efd;
    --primary-dark: #0a58ca;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --light-bg: #f8f9fa;
    --border-color: #dee2e6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    width: 100%;
    max-width: 1000px;
    min-height: 600px;
    display: flex;
    backdrop-filter: blur(10px);
}

.login-image {
    flex: 1;
    background: url('/images/dental-login-bg.jpg') center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

    .login-image::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(13, 110, 253, 0.8) 0%, rgba(108, 117, 125, 0.8) 100%);
    }

.login-image-content {
    position: relative;
    text-align: center;
    color: white;
}

    .login-image-content i {
        font-size: 80px;
        margin-bottom: 20px;
        animation: pulse 2s infinite;
    }

    .login-image-content h2 {
        font-size: 2rem;
        font-weight: 700;
        margin-bottom: 15px;
    }

    .login-image-content p {
        font-size: 1.1rem;
        opacity: 0.9;
    }

.login-form-container {
    flex: 1;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

    .login-header h1 {
        color: var(--primary-color);
        font-size: 2.5rem;
        font-weight: 700;
        margin-bottom: 10px;
    }

    .login-header p {
        color: var(--secondary-color);
        font-size: 1.1rem;
    }

.form-floating {
    margin-bottom: 20px;
}

    .form-floating input {
        border: 2px solid var(--border-color);
        border-radius: 10px;
        padding: 15px;
        font-size: 1rem;
        transition: all 0.3s ease;
    }

        .form-floating input:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
        }

    .form-floating label {
        padding: 15px;
        color: var(--secondary-color);
    }

.input-group-text {
    background: transparent;
    border: 2px solid var(--border-color);
    border-left: none;
    border-radius: 0 10px 10px 0;
    color: var(--primary-color);
}

.form-floating input {
    border-radius: 10px 0 0 10px;
    border-right: none;
}

.form-check {
    margin-bottom: 25px;
}

.form-check-input {
    width: 20px;
    height: 20px;
    margin-left: 10px;
    cursor: pointer;
}

.form-check-label {
    cursor: pointer;
    color: var(--secondary-color);
    font-size: 1rem;
}

.btn-login {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

    .btn-login:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(13, 110, 253, 0.3);
    }

.forgot-password {
    text-align: center;
    margin-top: 20px;
}

    .forgot-password a {
        color: var(--primary-color);
        text-decoration: none;
        font-weight: 500;
        transition: all 0.3s ease;
    }

        .forgot-password a:hover {
            text-decoration: underline;
        }

.alert {
    border-radius: 10px;
    border: none;
    padding: 15px 20px;
    margin-bottom: 20px;
    animation: slideIn 0.3s ease;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        max-width: 500px;
    }

    .login-image {
        min-height: 200px;
        padding: 30px;
    }

    .login-image-content i {
        font-size: 50px;
    }

    .login-image-content h2 {
        font-size: 1.5rem;
    }

    .login-form-container {
        padding: 40px 30px;
    }

    .login-header h1 {
        font-size: 2rem;
    }
}

.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3em;
}

.demo-credentials {
    background: var(--light-bg);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
}

    .demo-credentials h6 {
        color: var(--primary-color);
        margin-bottom: 10px;
        font-weight: 600;
    }

    .demo-credentials p {
        margin: 5px 0;
        color: var(--secondary-color);
        font-size: 0.9rem;
    }

    .demo-credentials code {
        background: white;
        padding: 2px 6px;
        border-radius: 4px;
        color: var(--primary-dark);
        font-size: 0.85rem;
    }


