/* Jendral Motor custom login */
.jm-login-page, .jm-login-page * { box-sizing: border-box; }
.jm-login-page {
    --jm-orange: #ff6418;
    --jm-navy: #14243a;
    position: relative;
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 144px 24px 38px;
    overflow: hidden;
    color: #26354b;
    font-family: Arial, Helvetica, sans-serif;
    background:
        repeating-linear-gradient(120deg, transparent 0 27px, rgba(255,255,255,.025) 27px 28px, transparent 28px 55px),
        radial-gradient(ellipse at 0% 28%, rgba(91,48,39,.42), transparent 42%),
        linear-gradient(112deg, #171d2a 0%, #122238 58%, #14263d 100%);
}
.jm-login-brand {
    width: 420px;
    max-width: calc(100% - 24px);
    margin: 0 0 30px max(calc((100% - 1040px) / 2), 0px);
    display: flex;
    align-items: center;
    gap: 20px;
    color: #fff;
}
.jm-brand-mark {
    width: 50px; height: 50px; flex: 0 0 50px;
    border: 2px solid #ff5b12; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; background: #ff5b12;
    box-shadow: inset 0 0 0 3px #14243a, inset 0 0 0 5px #fff;
}
.jm-brand-mark span { font-size: 27px; font-weight: 900; letter-spacing: -3px; transform: scaleX(.9); }
.jm-brand-name { font-size: 25px; line-height: 1; font-weight: 900; letter-spacing: .3px; }
.jm-login-card {
    width: 420px;
    max-width: 100%;
    margin-left: max(calc((100% - 1040px) / 2 - 66px), 0px);
    padding: 36px 31px 54px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 14px 36px rgba(0,0,0,.12);
}
.jm-login-card h1 { margin: 0 0 9px; color: #27364d; font-size: 21px; line-height: 1.25; font-weight: 900; }
.jm-login-form > label { display: block; margin: 0 0 15px; color: #34445d; font-size: 12px; font-weight: 700; }
.jm-login-form > input[type="text"], .jm-password-wrap input {
    display: block; width: 100%; height: 48px; padding: 0 14px;
    border: 1px solid #d8e0ed; border-radius: 10px;
    background: #e8f0fd; color: #111827; font-size: 13px;
    outline: none; box-shadow: none;
}
.jm-login-form > input[type="text"]:focus, .jm-password-wrap input:focus { border-color: #8daee0; box-shadow: 0 0 0 2px rgba(80,130,200,.12); }
.jm-login-form > input[type="text"] { margin-bottom: 21px; }
.jm-login-form .jm-password-label { margin-bottom: 16px; }
.jm-password-wrap { position: relative; margin-bottom: 18px; }
.jm-password-wrap input { padding-right: 48px; }
.jm-toggle-password {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    width: 28px; height: 28px; border: 0; padding: 4px; margin: 0;
    background: transparent; color: var(--jm-orange); cursor: pointer;
}
.jm-toggle-password svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.jm-login-actions { display: flex; align-items: center; gap: 8px; min-height: 42px; }
.jm-remember { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; margin: 0; color: #66768f; font-size: 12px; white-space: nowrap; cursor: pointer; }
.jm-remember input { width: 17px; height: 17px; margin: 0; accent-color: var(--jm-orange); }
.jm-help { width: 15px; height: 15px; flex: 0 0 15px; border-radius: 50%; background: #59616b; color: #fff; font-size: 11px; font-weight: bold; text-align: center; line-height: 15px; }
.jm-system-note { color: #73839d; font-size: 11px; line-height: 16px; flex: 1 1 auto; }
.jm-submit {
    flex: 0 0 auto; min-height: 40px; padding: 0 17px;
    border: 0; border-radius: 0; background: var(--jm-orange); color: #fff;
    font-size: 12px; font-weight: 800; cursor: pointer;
    box-shadow: 0 8px 18px rgba(255,100,24,.22);
}
.jm-submit:hover { background: #eb520b; color: #fff; }
.jm-login-links { width: 420px; max-width: 100%; margin: 20px 0 0 max(calc((100% - 1040px) / 2 - 66px), 0px); padding-left: 163px; display: flex; flex-direction: column; gap: 22px; }
.jm-login-links a { color: #e1e8f1; text-decoration: none; font-size: 12px; }
.jm-login-links a:hover { color: #fff; text-decoration: underline; }
.jm-login-links .jm-back-link { margin-left: -4px; }
.jm-login-footer { width: 420px; max-width: 100%; margin: 28px 0 0 max(calc((100% - 1040px) / 2 - 66px), 0px); padding-left: 122px; display: flex; flex-direction: column; gap: 8px; color: #9eacbf; font-size: 11px; }
.jm-login-footer strong { color: #ff741e; font-size: 11px; }
.jm-language { position: absolute; top: 51%; right: 4%; width: 250px; color: #31435c; }
.jm-language > label { display: block; margin-bottom: 9px; font-size: 12px; font-weight: 700; }
.jm-language-icon { display: inline-block; margin-left: 5px; font-size: 15px; }
.jm-language-controls { display: flex; gap: 8px; }
.jm-language select { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border: 1px solid #d1d5db; border-radius: 0; background: #fff; color: #111; font-size: 13px; }
.jm-language button { height: 40px; padding: 0 16px; border: 1px solid #3157d5; border-radius: 0; background: transparent; color: #3157ff; font-size: 13px; cursor: pointer; }
.jm-login-error { margin: 0 0 17px; padding: 10px 12px; border-left: 3px solid #dc3232; background: #fff0f0; color: #9b1c1c; font-size: 12px; line-height: 1.5; }
.jm-login-already { padding: 20px; border-radius: 10px; background: #fff; color: #26354b; }
.jm-login-already a { margin-left: 12px; }
@media (min-width: 1500px) {
    .jm-login-page { padding-top: 144px; }
}
@media (max-width: 900px) {
    .jm-login-page { padding-top: 70px; min-height: 100vh; }
    .jm-login-brand, .jm-login-card, .jm-login-links, .jm-login-footer { margin-left: auto; margin-right: auto; }
    .jm-language { position: static; width: 420px; max-width: 100%; margin: 34px auto 0; color: #c3cede; }
    .jm-language-controls { max-width: 300px; }
}
@media (max-width: 520px) {
    .jm-login-page { padding: 38px 16px 30px; }
    .jm-login-brand { gap: 13px; margin-bottom: 22px; }
    .jm-brand-mark { width: 44px; height: 44px; flex-basis: 44px; }
    .jm-brand-mark span { font-size: 23px; }
    .jm-brand-name { font-size: 20px; }
    .jm-login-card { padding: 28px 22px 32px; border-radius: 17px; }
    .jm-login-actions { flex-wrap: wrap; row-gap: 13px; }
    .jm-system-note { flex: 1 1 95px; }
    .jm-submit { flex: 1 1 100%; width: 100%; }
    .jm-login-links { padding-left: 0; gap: 18px; }
    .jm-login-footer { padding-left: 0; margin-top: 26px; }
    .jm-language { margin-top: 28px; }
}
