html,
body {
    height: 100%;
}

body.login-body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    color: #334155;
    background-image: linear-gradient(rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.58)), url("/images/ae858b5f-dab2-44f3-aa4d-763e9d19d6b6.png");
    background-size: cover;
    background-position: center;
}

.login-page {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 22px;
}

.split-layout {
    width: min(900px, 92vw);
    min-height: min(520px, 82vh);
    border-radius: 26px;
    overflow: hidden;
    background: #ffffff;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
}

.brand-panel {
    background: linear-gradient(145deg, #050505, #141414);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.brand-panel-content {
    width: min(300px, 100%);
    color: #ffffff;
}

.split-form {
    padding: clamp(16px, 2.4vw, 26px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
}

.login-form {
    width: min(390px, 100%);
    margin: 0 auto;
}

.brand-logo {
    width: min(165px, 36vw);
    margin: 0 auto 6px;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
}

.brand-top-text {
    margin: 6px 0 8px;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
}

.brand-tagline {
    margin: 0;
    color: #dbeafe;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.8;
}

.form-title {
    margin-bottom: 12px;
    text-align: center;
    color: #334155;
    font-size: 1.45rem;
    font-weight: 700;
}

.form-label {
    font-weight: 700;
    color: #64748b;
    margin-bottom: 6px;
}

.form-control,
.form-select {
    min-height: 42px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    color: #334155;
    background-color: #fff;
}

.form-control:focus,
.form-select:focus {
    border-color: #caa048;
    box-shadow: 0 0 0 0.15rem rgba(202, 160, 72, 0.2);
}

.actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 6px;
}

.remember-me .form-check-input {
    margin: 0;
    float: none;
}

.remember-me .form-check-label {
    margin-bottom: 0;
    font-weight: 600;
    color: #64748b;
}

.forgot-link {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
}

.forgot-link:hover {
    text-decoration: underline;
    color: #64748b;
}

.btn-login {
    min-height: 44px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(90deg, #b8862c, #caa048);
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.btn-login:hover {
    background: linear-gradient(90deg, #9f7424, #b8862c);
    color: #ffffff;
}

.site-signature {
    margin: 12px 0 0;
    color: #475569;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    text-align: center;
}

@media (max-width: 992px) {
    .split-layout {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .brand-panel {
        min-height: 220px;
    }

    .login-form {
        width: 100%;
    }

    .site-signature {
        margin-top: 10px;
        font-size: 0.8rem;
    }
}
