.login-body {
    font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
    background: #f7f7f9;
    margin: 0;
    min-height: 100vh;
}

.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 2fr;
}

.login-left {
    background: #f7f7f9;
    padding: 54px 96px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
}

.login-left > * {
    position: relative;
    z-index: 1;
}

.login-brand,
.login-content,
.login-form {
    width: min(420px, 100%);
    max-width: 420px;
}

.login-brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: clamp(4px, 2vh, 18px);
}

.login-logo-img {
    height: 55px;
    width: auto;
    object-fit: contain;
}

.login-content {
    margin-top: clamp(18px, 4vh, 58px);
}

.login-content h1 {
    font-size: 24px;
    margin: 0 0 12px 0;
    color: #111827;
}

.login-content p {
    margin: 0 0 28px 0;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.45;
}

.form-group {
    margin-bottom: 14px;
}

.login-form .form-group:last-of-type {
    margin-bottom: 0;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    height: 44px;
    border: 1px solid #cbd5e1;
    border-radius: 0.375rem;
    background: #fff;
    padding: 0 12px;
    font-size: 14px;
    color: #111827;
    box-sizing: border-box;
    line-height: 1.5;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 0.2rem rgba(14, 165, 233, 0.2);
}

.login-captcha-group {
    margin-top: 4px;
}

.login-captcha-code {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    margin-bottom: 8px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background:
        linear-gradient(135deg, rgba(14, 165, 233, 0.10), rgba(250, 204, 21, 0.14)),
        repeating-linear-gradient(45deg, rgba(17, 24, 39, 0.05) 0 1px, transparent 1px 8px);
    color: #111827;
    font-family: "Courier New", monospace;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 2px;
    user-select: none;
}

.login-captcha-code span:nth-child(odd) {
    transform: translateY(-1px) rotate(-4deg);
}

.login-captcha-code span:nth-child(even) {
    transform: translateY(1px) rotate(3deg);
}

.login-button {
    margin-top: 15px;
    width: 100%;
    height: 44px;
    border: 1px solid #0ea5e9;
    border-radius: 0.375rem;
    background: #0ea5e9;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.login-button:hover {
    background: #0284c7;
    border-color: #0284c7;
}

.login-alert {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 13px;
}

.login-alert-warning {
    border: 1px solid #facc15;
    background: #fef3c7;
    color: #92400e;
}

.login-alert-warning strong {
    display: block;
    font-size: 13px;
    margin-bottom: 8px;
}

.login-alert-warning ul {
    margin: 0;
    padding-left: 20px;
}

.login-alert-warning li {
    margin-bottom: 4px;
}

.login-alert-warning li:last-child {
    margin-bottom: 0;
}

.error-text {
    color: #b91c1c;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

.login-right {
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.3)),
        url('/assets/img/login/rtuk-background.png') center/cover no-repeat;
    position: relative;
    color: #fff;
}

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

    .login-right {
        display: none;
    }

    .login-left {
        padding: 34px 20px;
        min-height: 100vh;
    }

    .login-logo-img {
        height: 49px;
    }
}
