/* public_html/css/login_styles.css */
body {
    background: linear-gradient(135deg, var(--primary-navy, #1B4965) 0%, var(--primary-ls-red, #E71D36) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 1rem;
}

.login-container {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    max-width: 400px;
    width: 100%;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.logo-section {
    text-align: center;
    margin-bottom: 1.5rem;
}

.logo-section img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid var(--primary-navy, #1B4965);
    padding: 8px;
    background: white;
    margin-bottom: 0.75rem;
}

.logo-section h2 {
    color: var(--primary-navy, #1B4965);
    font-weight: 700;
    font-size: 1.5rem;
}

.input-icon {
    position: absolute;
    top: 50%;
    left: 1rem; /* For LTR */
    transform: translateY(-50%);
    color: #6c757d;
    z-index: 3;
}
body.rtl .input-icon {
    left: auto;
    right: 1rem;
}

.form-control {
    padding-left: 2.75rem; /* For LTR */
}
body.rtl .form-control {
    padding-left: 1rem;
    padding-right: 2.75rem;
}

.btn-login {
    background: linear-gradient(135deg, var(--primary-navy, #1B4965) 0%, var(--primary-ls-red, #E71D36) 100%);
    border: none;
    color: white;
    font-weight: 600;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.btn-login:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}
.btn-login:disabled {
    opacity: 0.7;
}

.language-selector {
    position: absolute;
    top: 15px;
    right: 15px; /* For LTR */
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 0.3rem 0.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
body.rtl .language-selector {
    right: auto;
    left: 15px;
}

.language-selector select {
    border: none;
    background: transparent;
    color: var(--primary-navy, #1B4965);
    font-weight: 500;
    font-size: 0.85rem;
    padding: 0.2rem;
}
.language-selector select:focus {
    outline: none;
    box-shadow: none;
}

.login-footer a {
    color: var(--primary-navy, #1B4965);
    font-weight: 500;
}
.login-footer a:hover {
    color: var(--primary-ls-red, #E71D36);
}



.form-floating { /* Add this if you are using Bootstrap's form-floating */
    position: relative;
}

.input-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d; /* Or your preferred icon color */
    z-index: 3; /* Ensure icon is above the input background */
    font-size: 1rem; /* Adjust as needed */
    pointer-events: none; /* So it doesn't interfere with input click */
}

/* LTR Styles */
body.ltr .input-icon {
    left: 1rem; /* Adjust padding-left of input accordingly */
}

body.ltr .form-control { /* Assuming .form-control is your input class */
    padding-left: 2.75rem !important; /* Make space for the icon (1rem icon + 0.75rem spacing + 1rem normal padding) */
    padding-right: 1rem !important;
}
/* If using form-floating, labels also need adjustment */
body.ltr .form-floating > label {
    padding-left: 2.75rem !important;
}


/* RTL Styles */
body.rtl .input-icon {
    right: 1rem; /* Adjust padding-right of input accordingly */
    left: auto;
}

body.rtl .form-control { /* Assuming .form-control is your input class */
    padding-right: 2.75rem !important; /* Make space for the icon */
    padding-left: 1rem !important;
}
/* If using form-floating, labels also need adjustment */
body.rtl .form-floating > label {
    padding-right: 2.75rem !important;
    left: 0; /* Reset default Bootstrap LTR label positioning */
    right: auto; /* Ensure it aligns right correctly */
    transform-origin: top right; /* For floating label animation in RTL */
}
/* Ensure the floating label itself also respects RTL */
body.rtl .form-floating > .form-control:focus ~ label,
body.rtl .form-floating > .form-control:not(:placeholder-shown) ~ label,
body.rtl .form-floating > .form-control-plaintext ~ label,
body.rtl .form-floating > .form-select ~ label {
    /* Bootstrap's default transform might need overriding or specific RTL transform */
    transform: scale(.85) translateY(-.5rem) translateX(-0.0rem); /* Adjust translateX for RTL */
}