﻿:root {
    --primary-green: #01626B;
    --primary-green-dark: #01626B;
    --primary-green-light: #01626B;
    --emerald-600: #01626B;
    --emerald-700: #047857;
    --emerald-50: #ecfdf5;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-900: #111827;
    --white: #ffffff;
}
.custom-icon {
    font-size: 3rem; 
    color: var(--primary-green); 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, var(--emerald-50) 0%, var(--gray-50) 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

[dir="rtl"] body,
[lang="ar"] body {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--emerald-50) 100%);
}

.main-container {
    min-height: 100vh;
    display: flex;
    position: relative;
}

    .main-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: radial-gradient(circle at 25% 25%, rgba(16, 185, 129, 0.1) 0%, transparent 50%), radial-gradient(circle at 75% 75%, rgba(5, 150, 105, 0.1) 0%, transparent 50%);
        pointer-events: none;
        z-index: 0;
    }

.welcome-panel {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--emerald-600) 50%, var(--emerald-700) 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 3rem;
    color: white;
    overflow: hidden;
}

[dir="rtl"] .welcome-panel,
[lang="ar"] .welcome-panel {
    background: linear-gradient(135deg, var(--emerald-700) 0%, var(--emerald-600) 50%, var(--primary-green) 100%);
}

.welcome-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 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%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    pointer-events: none;
}

.welcome-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
}

.welcome-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.welcome-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    opacity: 0.95;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.feature-list {
    list-style: none;
    padding: 0;
}

    .feature-list li {
        display: flex;
        align-items: center;
        margin-bottom: 1.5rem;
        font-size: 1.1rem;
        font-weight: 500;
        opacity: 0.95;
        transform: translateX(-20px);
        animation: slideInLeft 0.6s ease-out forwards;
    }

        .feature-list li:nth-child(1) {
            animation-delay: 0.1s;
        }

        .feature-list li:nth-child(2) {
            animation-delay: 0.2s;
        }

        .feature-list li:nth-child(3) {
            animation-delay: 0.3s;
        }

        .feature-list li:nth-child(4) {
            animation-delay: 0.4s;
        }

        .feature-list li:nth-child(5) {
            animation-delay: 0.5s;
        }

        .feature-list li::before {
            content: '✓';
            background: rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 1rem;
            font-weight: bold;
            font-size: 0.9rem;
            flex-shrink: 0;
        }

[dir="rtl"] .feature-list li::before {
    margin-right: 0;
    margin-left: 1rem;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.login-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    background: var(--white);
}

.header-section {
    padding: 2rem 3rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--gray-100);
}

.language-switch {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--emerald-600);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    background: var(--emerald-50);
}

    .language-switch:hover {
        color: var(--emerald-700);
        background: var(--primary-green-light);
        transform: translateY(-2px);
    }

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

    .logo-section img {
        height: 50px;
        width: auto;
        object-fit: contain;
    }

.login-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 3rem 3rem;
}

.login-card {
    width: 100%;
    max-width: 450px;
    background: var(--white);
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid var(--gray-100);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-green), var(--emerald-600));
    color: white;
    text-align: center;
    padding: 2rem;
    position: relative;
}

[dir="rtl"] .card-header,
[lang="ar"] .card-header {
    background: linear-gradient(135deg, var(--emerald-600), var(--primary-green));
}



.card-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    position: relative;
    z-index: 1;
}

.card-body {
    padding: 2.5rem;
}

.form-group {
    margin-bottom: 2rem;
}

.form-label {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    display: block;
}

.input-group {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

    .input-group:focus-within {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(16, 185, 129, 0.15);
    }

.input-group-text {
    background: var(--emerald-50);
    border: 2px solid var(--gray-100);
    border-right: none;
    color: var(--emerald-600);
    font-weight: 600;
    padding: 1rem 1.25rem;
    font-size: 1rem;
}

[dir="rtl"] .input-group-text {
    border-right: 2px solid var(--gray-100);
    border-left: none;
}

.form-control {
    border: 2px solid var(--gray-100);
    border-left: none;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
}

[dir="rtl"] .form-control {
    border-left: 2px solid var(--gray-100);
    border-right: none;
    direction: rtl;
}

.form-control:focus {
    border-color: var(--primary-green);
    box-shadow: none;
    background: var(--white);
}

    .form-control:focus + .input-group-text,
    .input-group:focus-within .input-group-text {
        border-color: var(--primary-green);
        background: var(--primary-green);
        color: white;
    }

.form-text {
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-green), var(--emerald-600));
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: none;
    letter-spacing: 0.025em;
}

[dir="rtl"] .btn-primary,
[lang="ar"] .btn-primary {
    background: linear-gradient(135deg, var(--emerald-600), var(--primary-green));
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
    background: linear-gradient(135deg, var(--emerald-600), var(--emerald-700));
}

.btn-primary:active {
    transform: translateY(-1px);
}

.spinner-border {
    color: var(--primary-green);
    width: 2rem;
    height: 2rem;
}

.alert {
    border-radius: 12px;
    border: none;
    padding: 1rem 1.25rem;
    font-weight: 500;
}

.alert-danger {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    color: #dc2626;
}

.modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-green), var(--emerald-600));
    color: white;
    border-bottom: none;
    padding: 2rem;
    position: relative;
}

[dir="rtl"] .modal-header,
[lang="ar"] .modal-header {
    background: linear-gradient(135deg, var(--emerald-600), var(--primary-green));
}

.modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='30' height='30' viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Ccircle cx='15' cy='15' r='1'/%3E%3C/g%3E%3C/svg%3E") repeat;
}

.modal-title {
    font-weight: 700;
    font-size: 1.5rem;
    position: relative;
    z-index: 1;
}

.modal-body {
    padding: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--gray-900);
}

    .modal-body input[type="date"] {
        border: 2px solid var(--gray-100);
        border-radius: 12px;
        padding: 1rem;
        font-size: 1rem;
        transition: all 0.3s ease;
        width: 100%;
        margin-top: 1rem;
    }

        .modal-body input[type="date"]:focus {
            border-color: var(--primary-green);
            box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
            outline: none;
        }

.modal-footer {
    border-top: 1px solid var(--gray-100);
    padding: 1.5rem 2rem;
    background: var(--gray-50);
}

.alert-warning {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    color: #d97706;
    border-radius: 12px;
    border: none;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }

    .welcome-panel {
        padding: 2rem 1.5rem;
        min-height: 40vh;
    }

    .welcome-title {
        font-size: 2rem;
    }

    .welcome-subtitle {
        font-size: 1.1rem;
    }

    .header-section {
        padding: 1.5rem;
        flex-direction: column;
        gap: 1rem;
    }

    .login-content {
        padding: 1.5rem;
    }

    .card-header {
        padding: 1.5rem;
    }

    .card-body {
        padding: 2rem 1.5rem;
    }

    .feature-list li::before {
        margin-right: 0.75rem;
        width: 28px;
        height: 28px;
    }

    [dir="rtl"] .feature-list li::before {
        margin-left: 0.75rem;
    }
}

@media (max-width: 480px) {
    .welcome-panel {
        padding: 1.5rem 1rem;
    }

    .login-card {
        margin: 0;
        border-radius: 16px;
    }

    .modal-dialog {
        margin: 1rem;
    }

}
.powered-by-footer {
    padding: 1rem 3rem 1.5rem;
    text-align: center;
    border-top: 1px solid #f3f4f6;
    background: #f9fafb;
}

.powered-by-text {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 400;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

    .powered-by-text:hover {
        color: #01626B;
        text-decoration: none;
    }
