/* ── Login Page (split-screen) ── */
.login-page {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background: #F5FAFD;
}

/* ── Left brand panel ── */
.login-brand {
    flex: 1 1 42%;
    min-width: 0;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 56px 64px;
    color: #ffffff;
    background: linear-gradient(135deg, #187DE4 0%, #0D4FA8 100%);
}

.login-brand::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    pointer-events: none;
}

.login-brand::after {
    content: '';
    position: absolute;
    bottom: -90px;
    left: -70px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.login-logo {
    position: relative;
    z-index: 1;
    height: 36px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.login-brand-mid {
    position: relative;
    z-index: 1;
    max-width: 420px;
}

.login-product-name {
    margin: 0 0 20px 0;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.login-heading {
    margin: 0 0 16px 0;
    font-size: 2.5rem;
    line-height: 1.15;
    font-weight: 700;
    color: #ffffff;
    outline: none;
    user-select: none;
    -webkit-user-select: none;
}

.login-subtext {
    margin: 0;
    max-width: 380px;
    font-size: 1.05rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.86);
}

.login-brand-foot {
    position: relative;
    z-index: 1;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
}

/* ── Right form panel ── */
.login-form-panel {
    flex: 1 1 58%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    background: #FFFFFF;
}

.login-form-wrap {
    width: 100%;
    max-width: 380px;
}

.login-field .mud-input-outlined-border {
    border-radius: 10px !important;
}

.login-field:hover .mud-input-outlined-border {
    border-color: rgba(24, 125, 228, 0.4) !important;
}

.login-alert {
    border-radius: 10px !important;
}

.login-divider {
    margin: 4px 0 20px 0 !important;
}

.login-submit-btn {
    height: 50px;
    border-radius: 10px !important;
    font-size: 0.95rem !important;
    letter-spacing: 0.01em;
    box-shadow: 0 2px 10px rgba(24, 125, 228, 0.18);
    transition: transform 0.1s ease, box-shadow 0.18s ease;
}

.login-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(24, 125, 228, 0.28);
}

.login-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(24, 125, 228, 0.16);
}

/* ── In-form footer ── */
.login-footer {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.login-footer-caption {
    font-size: 0.78rem;
    color: #5E7388;
}

.login-help-link {
    font-size: 0.78rem;
    font-weight: 600;
    color: #187DE4;
    text-decoration: none;
}

.login-help-link:hover {
    color: #0D4FA8;
    text-decoration: underline;
}

/* ── Responsive: hide brand panel on small screens ── */
@media (max-width: 900px) {
    .login-brand {
        display: none;
    }

    .login-form-panel {
        flex: 1 1 100%;
    }
}
