/* Login Page Layout */
.login-container {
    display: flex;
    width: 100%;
    height: 100vh;
}

/* Image Section */
.login-image {
    width: 50%;
    background-color: #1e2c4f;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    margin: 20px 0 20px 40px;
}

.login-image img {
    margin-top: 43px;
}

/* Form Section */
.login-form {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    background-color: #fff;
    max-width: 600px;
    margin: auto;
}

/* Password Input with Eye Icon */
.password-container {
    position: relative;
    margin: 23px 0 10px 0;
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    width: 100%;
    padding-right: 40px;
    padding-left: 16px;
}

[dir="rtl"] .password-wrapper input {
    padding-right: 16px;
    padding-left: 40px;
}

.eye-icon {
    position: absolute;
    right: 10px;
    left: auto;
    cursor: pointer;
    font-size: 18px;
    color: #666;
}

/* RTL: flip eye icon to the left side */
[dir="rtl"] .eye-icon {
    right: auto;
    left: 10px;
}

.eye-icon:hover {
    color: var(--primary-color);
}

/* ── Custom Language Switcher ── */
.lang-switcher {
    position: absolute;
    top: 20px;
    right: 40px;
    left: auto;
    z-index: 100;
}

[dir="rtl"] .lang-switcher {
    right: auto;
    left: 40px;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    background: #fff;
    border: 1.5px solid #e2e6ea;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #3d4451;
    box-shadow: 0 2px 8px rgba(0,0,0,.07);
    transition: border-color .2s, box-shadow .2s;
    white-space: nowrap;
}

.lang-btn:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 12px rgba(0,0,0,.12);
}

.lang-icon {
    width: 16px;
    height: 16px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.lang-chevron {
    width: 14px;
    height: 14px;
    color: #888;
    flex-shrink: 0;
    transition: transform .2s;
}

.lang-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    min-width: 140px;
    background: #fff;
    border: 1.5px solid #e2e6ea;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    padding: 6px;
    margin: 0;
    list-style: none;
    overflow: hidden;
}

[dir="rtl"] .lang-menu {
    right: auto;
    left: 0;
}

.lang-menu.is-open {
    display: block;
}

.lang-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #3d4451;
    transition: background .15s;
}

.lang-option:hover {
    background: #f4f6f8;
}

.lang-option.is-active {
    background: #f0f7ff;
    color: var(--primary-color);
    font-weight: 700;
}

.lang-check {
    width: 15px;
    height: 15px;
    color: var(--primary-color);
    flex-shrink: 0;
    opacity: 0;
}

.lang-option.is-active .lang-check {
    opacity: 1;
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-logo img {
    height: 40px;
}

.footer-text {
    font-size: 14px;
}

/* 🌟 Responsive Media Queries */

/* Tablet Screens */
@media screen and (max-width: 1024px) {
    .login-container {
        flex-direction: column;
        height: auto;
    }

    .login-image {
        display: none;
    }

    .login-form {
        width: 100%;
        max-width: 600px;
        padding: 20px;
        height: 100vh;
    }
}

/* Mobile Screens */
@media screen and (max-width: 768px) {
    .login-container {
        flex-direction: column;
        height: auto;
    }

    .login-image {
        display: none;
    }

    .login-form {
        width: 100%;
        max-width: 400px;
        padding: 20px;
        height: 100vh;
    }

    .footer {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }

    .footer-logo img {
        margin-bottom: 10px;
    }

    .lang-switcher {
        top: 10px;
        right: 10px;
        left: auto;
    }

    [dir="rtl"] .lang-switcher {
        right: auto;
        left: 10px;
    }
}
.login-title {
    color: var(--header-color);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
}

.login-title .app-name {
    color: var(--primary-color);
}

.login-form-logo {
    margin-bottom: 44px;
}
.login-form-container {
    margin-top: 34px;
    display: flex;
    flex-direction: column;
    /* gap: 23px; */
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
input {
    height: 50px;
    padding: 16px;
    border-radius: 8px;
    background-color: #eff1f1;
    border: none;
    font-size: 16px;
    font-weight: 400;
}

.forgot-password {
    text-align: end;
    font-size: 15px;
    font-weight: 400;
    color: var(--text-color);
    text-decoration: none;
    margin-bottom: 54px;
}
.btn {
    height: 45px;
    padding: 5px 48px;
    background-color: var(--primary-color);
    border-radius: 10px;
    border: none;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
}
.divider {
    width: 90%;
    height: 1px;
    opacity: 0.2;
    background: #fff;
    margin: 24px 0 31px 0px;
}
.animation-title {
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
}

.alert-danger {
    background-color: #ffebee;
    border-left: 4px solid #f44336;
    border-radius: 4px;
    padding: 12px 16px;
    margin-bottom: 20px;
    color: #b71c1c;
    margin-top: 12px;
}

.alert-danger ul {
    margin: 5px 0 5px 20px;
    padding: 0;
}

.alert-danger li {
    list-style-type: disc;
    margin-bottom: 5px;
    font-size: 14px;
    line-height: 1.4;
}

.alert-danger .close {
    float: right;
    font-size: 20px;
    font-weight: bold;
    line-height: 18px;
    color: #b71c1c;
    text-decoration: none;
    opacity: 0.5;
}

.alert-danger .close:hover {
    opacity: 1;
}
