  
:root {
    --login-bg-a: #0d1f30;
    --login-bg-b: #17435a;
    --login-accent: #f4c36a;
    --login-card: #ffffff;
    --login-muted: #68788f;
    --login-border: #d8e0ed;
    --login-input-bg: #f8fbff;
}

body {
    margin: 0;
    font-family: "Figtree", sans-serif;
    background:
        radial-gradient(circle at 12% 8%, rgba(244, 195, 106, 0.2) 0%, transparent 38%),
        radial-gradient(circle at 88% 84%, rgba(85, 174, 218, 0.16) 0%, transparent 40%),
        linear-gradient(150deg, var(--login-bg-a) 0%, var(--login-bg-b) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem;
}

.login-shell {
    width: min(1020px, 100%);
    background: var(--login-card);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 44px rgba(4, 16, 28, 0.35);
    position: relative;
}

.language-switcher {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(18, 52, 73, 0.14);
    border-radius: 999px;
    padding: 0.28rem;
    backdrop-filter: blur(6px);
}

.language-switcher a {
    text-decoration: none;
    color: #425e73;
    font-weight: 700;
    font-size: 0.78rem;
    border-radius: 999px;
    padding: 0.34rem 0.62rem;
    line-height: 1;
    transition: all 0.2s ease;
}

.language-switcher a:hover {
    color: #173247;
    background: rgba(23, 67, 90, 0.08);
}

.language-switcher a.active {
    color: #ffffff;
    background: linear-gradient(135deg, #18435b 0%, #0f2736 100%);
    box-shadow: 0 4px 10px rgba(15, 39, 54, 0.22);
}

.login-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 610px;
}

.login-visual {
    background:
        linear-gradient(170deg, rgba(8, 26, 40, 0.76), rgba(23, 67, 90, 0.9)),
        radial-gradient(circle at 16% 20%, rgba(244, 195, 106, 0.25), transparent 36%),
        radial-gradient(circle at 80% 86%, rgba(68, 172, 219, 0.2), transparent 40%);
    color: white;
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.visual-top h2 {
    font-size: 1.8rem;
    line-height: 1.25;
    margin-bottom: 0.8rem;
}

.visual-top p {
    color: rgba(255, 255, 255, 0.82);
    margin: 0;
}

.visual-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    padding: 0.4rem 0.75rem;
    font-size: 0.84rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.visual-image-wrap {
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    padding: 0.9rem;
    backdrop-filter: blur(3px);
    overflow: hidden;
}

.visual-image {
    width: 100%;
    height: 250px;
    display: block;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.visual-caption {
    margin-top: 0.6rem;
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
}

.login-form-panel {
    padding: 2.2rem;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-brand {
    text-align: center;
    margin-bottom: 1.35rem;
}

.brand-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    margin: 0 auto 0.8rem;
    display: grid;
    place-items: center;
    color: #102b3e;
    background: linear-gradient(145deg, #ffe2b3, #f4c36a);
    box-shadow: 0 8px 18px rgba(244, 195, 106, 0.35);
    font-size: 1.4rem;
}

.login-brand h3 {
    margin: 0;
    font-size: 1.45rem;
    color: #173247;
}

.login-brand p {
    margin: 0.35rem 0 0;
    color: var(--login-muted);
}

.login-form .form-label {
    color: #20384e;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.login-form .form-control {
    border-radius: 10px;
    border: 1px solid var(--login-border);
    background: var(--login-input-bg);
    padding: 0.75rem 1rem;
    height: 46px;
    border-left: none;
    border-radius: 0 10px 10px 0;
}

.login-form .form-control:focus {
    border-color: #4e88a8;
    box-shadow: none;
    background: #ffffff;
}

.login-form .input-group-text {
    background: var(--login-input-bg);
    border: 1px solid var(--login-border);
    border-right: none;
    border-radius: 10px 0 0 10px;
    color: #4a6784;
}

.login-form .form-check-label {
    color: #53687f;
    font-size: 0.92rem;
}

.btn-login {
    background: linear-gradient(135deg, #18435b 0%, #0f2736 100%);
    border: none;
    border-radius: 10px;
    padding: 0.78rem 1.2rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.2px;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(15, 39, 54, 0.34);
    color: #ffffff;
}

.login-footer-note {
    text-align: center;
    margin-top: 1rem;
    color: var(--login-muted);
    font-size: 0.86rem;
}

[dir="rtl"] .login-form .form-control {
    border-left: 1px solid var(--login-border);
    border-right: none;
    border-radius: 10px 0 0 10px;
}

[dir="rtl"] .login-form .input-group-text {
    border-right: 1px solid var(--login-border);
    border-left: none;
    border-radius: 0 10px 10px 0;
}

[dir="rtl"] .language-switcher {
    right: auto;
    left: 1rem;
}

@media (max-width: 992px) {
    .login-grid {
        grid-template-columns: 1fr;
    }

    .login-visual {
        min-height: 250px;
        padding: 1.4rem;
    }

    .visual-image {
        height: 210px;
    }

    .visual-top h2 {
        font-size: 1.45rem;
    }

    .login-form-panel {
        padding: 1.5rem 1.2rem;
    }
}