/* JaviTrans split login — scoped to .login-page-jt */

body.login-page-jt {
    background-image: none;
}

.login-page-jt {
    --jt-blue: #2b78c5;
    --jt-blue-dark: #1f5f9e;
    --jt-blue-light: #4a9ae0;
    --jt-page-bg: #e1f0ff;
    --jt-text-muted: #5c6b7a;
    --jt-border: #d0d7de;
    font-family: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 1rem;
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: var(--jt-page-bg);
    position: relative;
    overflow-x: hidden;
}

.login-page-jt svg text {
    font-family: "Roboto", sans-serif;
}

.login-jt-layout {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    width: 100%;
    max-width: 1200px;
    min-height: 640px;
}

.login-jt-footer {
    text-align: center;
    padding: 0 16px 8px;
    width: 100%;
}

.login-jt-footer p {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--jt-text-muted);
    line-height: 1.5;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.login-page-jt::before,
.login-page-jt::after {
    content: "";
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.login-page-jt::before {
    width: 420px;
    height: 420px;
    background: rgba(43, 120, 197, 0.12);
    top: -120px;
    right: -80px;
}

.login-page-jt::after {
    width: 360px;
    height: 360px;
    background: rgba(43, 120, 197, 0.1);
    bottom: -100px;
    left: -100px;
}

.login-jt-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 12px 40px rgba(15, 45, 85, 0.12), 0 2px 8px rgba(15, 45, 85, 0.06);
    display: flex;
    min-height: 600px;
    overflow: hidden;
}

.login-jt-brand {
    flex: 7 1 0%;
    min-width: 0;
    background-image:
        linear-gradient(
            to top,
            rgba(110, 179, 232, 0.2) 0%,
            rgba(74, 154, 224, 0.48) 22%,
            rgba(43, 120, 197, 0.78) 50%,
            var(--jt-blue) 74%,
            var(--jt-blue-dark) 100%
        ),
        url("../images/login-background-2.png");
    background-repeat: no-repeat, no-repeat;
    background-position: center, center bottom;
    /* Cột trái: gradient + ảnh phủ 100% chiều ngang vùng brand */
    background-size: 100% 100%, 100% auto;
    color: #fff;
    padding: 36px 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

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

.login-jt-brand__title {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
    line-height: 1.15;
}

.login-jt-brand__tagline {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 20px;
    opacity: 0.95;
}

.login-jt-brand__desc {
    font-size: 1rem;
    line-height: 1.55;
    margin: 0 0 24px;
    opacity: 0.92;
    max-width: 340px;
}

.login-jt-qr-row {
    align-self: center;
    margin-bottom: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 18px;
    width: 100%;
    max-width: 280px;
}

.login-jt-qr-tile {
    text-align: center;
    flex: 0 0 auto;
}

.login-jt-qr-tile__frame {
    display: inline-block;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.6);
    line-height: 0;
}

.login-jt-qr-tile__frame img {
    display: block;
    width: 100%;
    max-width: 112px;
    height: auto;
    border-radius: 4px;
}

.login-jt-qr-tile__caption {
    margin: 8px 0 0;
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: 0.02em;
}

.login-jt-form-wrap {
    flex: 5 1 0%;
    min-width: 0;
    padding: 40px 32px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-jt-logo {
    text-align: center;
    margin-bottom: 28px;
}

.login-jt-logo img {
    max-width: 260px;
    width: 100%;
    height: auto;
    display: inline-block;
    vertical-align: middle;
    object-fit: contain;
}

.login-jt-form-title {
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 28px;
}

.login-jt-form .form-group {
    margin-bottom: 18px;
}

.login-jt-form .form-group label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--jt-text-muted);
    margin-bottom: 6px;
}

.login-jt-form .form-group input {
    border: 1px solid var(--jt-border);
    border-radius: 6px;
    padding: 11px 14px;
    font-size: 1rem;
}

.login-jt-form .form-group input:focus {
    border-color: var(--jt-blue);
    box-shadow: 0 0 0 3px rgba(43, 120, 197, 0.18);
}

.login-jt-form .password-toggle:hover {
    color: var(--jt-blue);
}

.login-jt-form .form-options {
    margin-bottom: 22px;
}

.login-jt-form .checkbox-wrapper input[type="checkbox"]:checked + .checkmark {
    background: var(--jt-blue);
    border-color: var(--jt-blue);
}

.login-jt-form .forgot-link {
    color: var(--jt-blue);
}

.login-jt-form .forgot-link:hover {
    color: var(--jt-blue-dark);
}

.login-jt-form .login-btn {
    background: var(--jt-blue);
    border-radius: 8px;
    margin-bottom: 0;
}

.login-jt-form .login-btn:hover {
    background: var(--jt-blue-dark);
    box-shadow: 0 4px 14px rgba(43, 120, 197, 0.45);
}

.login-jt-alert {
    padding: 12px 14px;
    background: #fee2e2;
    color: #991b1b;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 1rem;
}

.login-jt-alert--success {
    background: #d1fae5;
    color: #065f46;
}

.login-jt-back-link {
    display: block;
    text-align: center;
    margin-top: 1.5rem;
    color: var(--jt-blue);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
}

.login-jt-back-link:hover {
    color: var(--jt-blue-dark);
    text-decoration: underline;
}

.login-jt-form-wrap__cta.login-btn {
    text-decoration: none;
    margin-bottom: 0;
    background: var(--jt-blue);
    border-radius: 8px;
}

.login-jt-form-wrap__cta.login-btn:hover {
    background: var(--jt-blue-dark);
    box-shadow: 0 4px 14px rgba(43, 120, 197, 0.45);
}

/* Đồng bộ 1rem với các rule từ style.css (form dùng chung class) */
.login-page-jt .checkbox-wrapper,
.login-page-jt .forgot-link,
.login-page-jt .login-btn,
.login-page-jt .error-message {
    font-size: 1rem;
}

@media (max-width: 900px) {
    .login-jt-layout {
        min-height: 0;
        max-width: 100%;
    }

    .login-jt-shell {
        flex-direction: column-reverse;
        max-width: 440px;
        min-height: 0;
    }

    .login-jt-brand,
    .login-jt-form-wrap {
        flex: 0 0 auto;
    }

    .login-jt-brand {
        padding: 28px 24px 32px;
    }

    .login-jt-brand__desc {
        max-width: none;
    }

    .login-jt-qr-row {
        align-self: center;
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
    }

    .login-jt-form-wrap {
        padding: 32px 28px 28px;
    }
}
