body:has(.login-container) {
    overflow: auto;
    background: #dfe6ed;
}

.login-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.4);
    background-image: url("../images/loginBG.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: darken;
    padding: 16px;
}

.login-card {
    display: flex;
    width: 760px;
    max-width: 100%;
    min-height: 440px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.72),
        0 10px 24px rgba(0, 0, 0, 0.38);
    background: #fff;
}

.login-left {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 28px;
    background: #fff;
}

.login-form-wrapper {
    width: 100%;
    max-width: 300px;
}

.login-brand-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.login-brand-logo {
    height: 40px;
    width: auto;
    display: block;
    flex-shrink: 0;
}

.login-brand-name {
    font-family: "Poppins", "Segoe UI", system-ui, sans-serif;
    font-weight: 700;
    font-size: 1.85rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: -1px;
    font-style: italic;
    display: flex;
    gap: 9px;
}

/* Match main toolbar logo: Real = ink, Estate = muted ink */
.login-brand-real {
    color: var(--re-ink);
    margin-right: -4px;
}

.login-brand-estate {
    color: var(--re-ink-muted);
}

.login-title {
    font-family: "Nunito", "Segoe UI", system-ui, sans-serif;
    font-size: 1.35rem;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 18px;
    letter-spacing: 0.02em;
    line-height: 1.35;
}

#login-form {
    width: 100%;
}

.login-dhx-form {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.login-dhx-form .dhx_form-group {
    margin-bottom: 12px;
}

.login-btn {
    margin-top: 6px;
}

.login-btn .dhx_button--view_flat,
.login-btn .dhx_button {
    border-radius: 8px !important;
    height: 40px !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    text-transform: none !important;
    letter-spacing: 0.3px;
    background-color: var(--re-primary);
}

.login-footer {
    margin-top: 16px;
    text-align: center;
}

.login-version {
    font-size: 12px;
    color: #9ca3af;
    font-family: var(--ff-primary);
}

.login-right {
    flex: 1;
    position: relative;
    background-image: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1470&q=80');
    background-size: cover;
    background-position: center;
    min-height: 440px;
}

.login-right-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(33, 125, 237, 0.3) 0%,
        rgba(26, 97, 184, 0.1) 100%
    );
}

@media (max-width: 768px) {
    .login-container {
        padding: 0;
    }
    .login-card {
        flex-direction: column;
        min-height: 100vh;
        border-radius: 0;
    }
    .login-right {
        min-height: 140px;
        order: -1;
        flex: 0;
    }
    .login-left {
        padding: 24px 20px;
        flex: 1;
    }
}
