﻿@font-face {
    font-family: 'bahij_thesansarabic-bold';
    src: url('../fonts/bahij_thesansarabic-bold.ttf') format('truetype');
}
@font-face {
    font-family: 'bahij_thesansarabic-extrabold';
    src: url('../fonts/bahij_thesansarabic-extrabold.ttf') format('truetype');
}

body {
    background: -webkit-linear-gradient(top, rgba(71,132,106,0.7), rgba(78,141,114,0.1)), url('/images/Background.png') no-repeat center center fixed;
    background-size: cover;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: "bahij_thesansarabic-bold", bahij_thesansarabic-extrabold;
}



:root {
    --primary-color: #006946;
    --secondary-color: #004d34;
    --accent-color: #00995c;
    --light-bg: #f8f9fa;
    --text-color: #333;
}

/*body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a2f3a 0%, #2c5530 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: white;
    background-image: url('../images/Background.png');
    background-size: cover;
    background-position: center;
    position: relative;
}*/

    body::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 0;
    }

.login-container {
    background-color: rgba(139, 173, 143, 0.3);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(78, 192, 162, 0.9);
}

.login-header {
    background-color: rgba(0, 77, 52, 0.9);
    color: white;
    padding: 20px;
    text-align: center;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

    .login-header h2 {
        margin: 0;
        font-weight: 600;
        font-size: 1.5rem;
    }

.organization-name {
    font-size: 1.1rem;
    margin-bottom: 5px;
    opacity: 0.9;
}

.percentage-display {
    position: absolute;
    top: 15px;
    left: 20px;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.login-body {
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    font-weight: 500;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.9);
}

.form-control {
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    padding: 12px 15px;
    transition: all 0.3s;
    background-color: rgba(88, 137, 122, 0.1);
    color: white;
}

    .form-control::placeholder {
        color: rgba(255, 255, 255, 0.6);
    }

    .form-control:focus {
        border-color: rgba(255, 255, 255, 0.5);
        box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
        background-color: rgba(255, 255, 255, 0.15);
        color: white;
    }

.password-field {
    position: relative;
}

.toggle-password {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
}

.login-btn {
    background-color: transparent;
    background-image: url(../images/ButtonBG.png);
    background-size: contain; /* Shows full image without cropping */
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 12px;
    border: none;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s;
    margin-top: 10px;
    cursor: pointer;
}

    .login-btn:hover {
        opacity: 0.9;
        transform: translateY(-1px);
    }

/* If you need to ensure text is readable over the background image */
.login-btn {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}
.login-links {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    font-size: 0.9rem;
}

    .login-links a {
        color: rgba(255, 255, 255, 0.8);
        text-decoration: none;
    }

        .login-links a:hover {
            color: white;
            text-decoration: underline;
        }

.language-switcher {
    position: absolute;
    top: 15px;
    right: 20px;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
}

    .lang-btn:hover {
        background: rgba(255, 255, 255, 0.3);
    }

.info-box {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    border-left: 3px solid var(--accent-color);
}

    .info-box p {
        margin: 0;
        font-size: 0.9rem;
        color: rgba(255, 255, 255, 0.8);
    }

@media (max-width: 576px) {
    .login-container {
        max-width: 100%;
    }

    .login-body {
        padding: 20px;
    }

    .login-links {
        flex-direction: column;
        gap: 10px;
    }

        .login-links a {
            text-align: center;
        }
}


.logo-container {
    text-align: center;
    margin-bottom: 20px;
    z-index: 1;
}

.logo {
    width: 300px; /* 🔹 Reduce size here */
    height: auto;
    max-width: 50%; /* 🔹 Keeps it responsive */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}


.remember-me {
    display: flex;
    align-items: center;
    margin: 15px 0;
    padding-right: 5px;
}

.remember-checkbox {
    width: 18px;
    height: 18px;
    margin-left: 8px;
    accent-color: var(--accent-color);
    cursor: pointer;
}

.remember-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    cursor: pointer;
    margin: 0;
}