.anbar-login-page {
    --brand: #26314f;
    --brand-dark: #1d263f;
    --text: #26314f;
    --muted: #6b7280;
    --line: #e3e8f0;
    --soft: #f6f8fb;
    min-height: 100vh;
    padding: 24px;
    background: #f6f8fb;
    color: var(--text);
}

.anbar-login-page,
.anbar-login-page * {
    box-sizing: border-box;
    letter-spacing: 0;
}

@keyframes anbarLoginShellIn {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes anbarLoginFadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes anbarLoginLogoIn {
    from {
        opacity: 0;
        transform: translateX(-12px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.anbar-login-shell {
    width: min(1080px, 100%);
    min-height: calc(100vh - 48px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 440px);
    align-items: stretch;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(38, 49, 79, 0.09);
    animation: anbarLoginShellIn 620ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.anbar-login-brand-panel {
    padding: clamp(28px, 4vw, 52px);
    background: var(--brand);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 42px;
}

.anbar-login-logo,
.anbar-login-logo:hover,
.anbar-login-back,
.anbar-login-back:hover {
    color: inherit;
    text-decoration: none;
}

.anbar-login-logo {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 18px;
    font-weight: 850;
    animation: anbarLoginLogoIn 560ms 120ms ease both;
}

.anbar-login-logo img {
    width: 72px;
    height: 52px;
    padding: 8px;
    border-radius: 14px;
    background: #ffffff;
    object-fit: contain;
    transition: transform 180ms ease;
}

.anbar-login-logo:hover img {
    transform: translateY(-2px);
}

.anbar-login-brand-copy {
    max-width: 470px;
    animation: anbarLoginFadeUp 620ms 220ms ease both;
}

.anbar-login-brand-copy span {
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.anbar-login-brand-copy h1 {
    margin: 18px 0 14px;
    color: #ffffff;
    font-size: clamp(42px, 5.2vw, 68px);
    line-height: 0.98;
    font-weight: 850;
}

.anbar-login-brand-copy p {
    max-width: 410px;
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 17px;
    line-height: 1.65;
    font-weight: 600;
}

.anbar-login-back {
    width: fit-content;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 850;
    transition: background 180ms ease, transform 180ms ease, border-color 180ms ease;
    animation: anbarLoginFadeUp 620ms 320ms ease both;
}

.anbar-login-back:hover {
    transform: translateX(-2px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.26);
}

.anbar-login-card {
    padding: clamp(28px, 4vw, 46px);
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    animation: anbarLoginFadeUp 620ms 260ms ease both;
}

.anbar-auth-card-badge {
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: #eef1f7;
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 850;
}

.anbar-login-card h2 {
    margin: 18px 0 8px;
    color: var(--text);
    font-size: 34px;
    line-height: 1.08;
    font-weight: 850;
}

.anbar-login-card p {
    margin: 0 0 30px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
    font-weight: 650;
}

.anbar-login-form {
    display: grid;
    gap: 16px;
}

.anbar-field {
    display: grid;
    gap: 8px;
    margin: 0;
    color: var(--text);
    font-size: 13px;
    font-weight: 850;
}

.anbar-input-wrap {
    position: relative;
    min-height: 54px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--soft);
    display: flex;
    align-items: center;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease, transform 160ms ease;
}

.anbar-input-wrap:focus-within {
    border-color: rgba(38, 49, 79, 0.66);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(38, 49, 79, 0.1);
    transform: translateY(-1px);
}

.anbar-input-icon {
    width: 54px;
    min-height: 54px;
    border-inline-end: 1px solid var(--line);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.anbar-input-icon img {
    width: 17px;
    height: 17px;
    object-fit: contain;
    opacity: 0.58;
}

.anbar-input-wrap .form-control {
    width: 100%;
    height: 52px;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    color: var(--text);
    padding: 0 50px 0 16px;
    font-size: 14px;
    font-weight: 700;
}

html[dir="rtl"] .anbar-input-wrap .form-control {
    padding: 0 16px 0 50px;
}

.anbar-input-wrap .form-control::placeholder {
    color: #9aa3b3;
}

.anbar-input-wrap label.error {
    position: absolute;
    inset-inline-start: 54px;
    top: calc(100% + 5px);
    width: calc(100% - 54px);
    margin: 0;
    color: #dc2626 !important;
    font-size: 10px !important;
    line-height: 1.25 !important;
    font-weight: 750 !important;
    text-align: start;
    pointer-events: none;
}

.anbar-input-wrap:has(label.error) {
    margin-bottom: 14px;
}

.anbar-input-wrap .form-control.error {
    color: var(--text) !important;
    border: 0 !important;
    padding: 0 50px 0 16px !important;
}

html[dir="rtl"] .anbar-input-wrap label.error {
    inset-inline-start: 54px;
}

html[dir="rtl"] .anbar-input-wrap .form-control.error {
    padding: 0 16px 0 50px !important;
}

.anbar-password-toggle {
    position: absolute;
    inset-inline-end: 14px;
    top: 50%;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 5;
}

.anbar-password-toggle img {
    width: 17px;
    height: 17px;
    object-fit: contain;
}

.anbar-password-toggle img:last-child,
.anbar-password-toggle.show-pass img:first-child {
    display: none;
}

.anbar-password-toggle.show-pass img:last-child {
    display: block;
}

.anbar-auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.anbar-auth-check {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #4f5b70;
    cursor: pointer;
    font-size: 13px;
    font-weight: 750;
    margin: 0;
}

.anbar-auth-check input {
    width: 17px;
    height: 17px;
    margin: 0;
    border-radius: 6px;
    accent-color: var(--brand);
}

.anbar-auth-options a,
.anbar-auth-footer-links a {
    color: var(--brand);
    font-size: 13px;
    font-weight: 850;
    text-decoration: none;
}

.anbar-auth-options a:hover,
.anbar-auth-footer-links a:hover {
    text-decoration: underline;
}

.anbar-login-submit {
    min-height: 54px;
    border: 0 !important;
    border-radius: 12px !important;
    background: var(--brand) !important;
    color: #ffffff !important;
    box-shadow: 0 14px 28px rgba(38, 49, 79, 0.18);
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 850;
    transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.anbar-login-submit:hover {
    background: var(--brand-dark) !important;
    color: #ffffff !important;
    box-shadow: 0 18px 34px rgba(38, 49, 79, 0.23);
    transform: translateY(-2px);
}

.anbar-auth-footer-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 2px;
}

.anbar-auth-divider {
    position: relative;
    margin: 26px 0 18px;
    color: #8a94a6;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.anbar-auth-divider:before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: var(--line);
}

.anbar-auth-divider span {
    position: relative;
    padding: 0 12px;
    background: #ffffff;
}

.anbar-social-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.anbar-social-login .login-social {
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #ffffff;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.anbar-social-login .login-social img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

html[dir="rtl"] .anbar-login-submit .fa-arrow-right,
html[dir="rtl"] .anbar-login-back .fa-arrow-left {
    transform: rotate(180deg);
}

@media (prefers-reduced-motion: reduce) {
    .anbar-login-page *,
    .anbar-login-page *::before,
    .anbar-login-page *::after {
        animation: none !important;
        transition: none !important;
    }
}

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

    .anbar-login-brand-panel {
        min-height: 360px;
    }
}

@media (max-width: 560px) {
    .anbar-login-page {
        padding: 10px;
    }

    .anbar-login-shell {
        min-height: calc(100vh - 20px);
        border-radius: 18px;
    }

    .anbar-login-brand-panel {
        min-height: 300px;
        padding: 26px 18px;
    }

    .anbar-login-logo img {
        width: 58px;
        height: 42px;
    }

    .anbar-login-brand-copy h1 {
        font-size: 36px;
    }

    .anbar-login-brand-copy p {
        font-size: 15px;
    }

    .anbar-login-card {
        padding: 26px 18px;
    }

    .anbar-login-card h2 {
        font-size: 28px;
    }

    .anbar-auth-options,
    .anbar-auth-footer-links {
        align-items: flex-start;
        flex-direction: column;
    }

    .anbar-social-login {
        grid-template-columns: 1fr;
    }
}
