* { box-sizing: border-box; }
.tmta-login {
    --ink: #10213d;
    --muted-ink: #43536b;
    margin: 0;
    min-height: 100vh;
    min-height: 100svh;
    padding: 36px 24px;
    display: grid;
    place-items: center;
    color-scheme: light;
    color: var(--ink);
    background: radial-gradient(ellipse at 0% 0%, #075aa9 0, transparent 40%), radial-gradient(ellipse at 100% 0%, #a57912 0, transparent 32%), radial-gradient(ellipse at 0% 100%, #b61836 0, transparent 35%), #0b1930;
    font-family: Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}
.tmta-login *, .tmta-login *::before, .tmta-login *::after { box-sizing: border-box; }
.tmta-login h1, .tmta-login h2, .tmta-login p, .tmta-login label, .tmta-login summary { color: inherit; }
.tmta-login a { color: #075bbb; }
[hidden] { display: none !important; }
button, input { font: inherit; }
button, a, summary, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #2868da; outline-offset: 4px; }
.login-card {
    position: relative;
    isolation: isolate;
    display: flex;
    width: min(1000px, calc((100svh - 46px) * 1.79), 100%);
    min-height: min(560px, calc(100svh - 46px));
    border: 1px solid rgb(255 255 255 / 48%);
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(118deg, rgb(229 239 253 / 95%), rgb(244 239 239 / 92%) 49%, rgb(216 227 242 / 94%));
    box-shadow: 0 28px 80px rgb(0 0 0 / 40%), inset 0 1px 0 rgb(255 255 255 / 65%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transition: box-shadow .45s ease, border-color .45s ease;
}
.login-form-panel { position: relative; z-index: 2; width: 51%; padding: 38px 38px 32px; }
.login-form-panel h1 { color: #071a34; font-size: 30px; font-weight: 700; letter-spacing: .1px; margin: 0 0 10px; }
.heading-accent { width: 31px; height: 3px; border-radius: 3px; background: #1683f5; }
.role-caption { margin: 14px 0 -27px; font-size: 13px; color: var(--muted-ink); }
.login-form { margin-top: 25px; transition: opacity .35s ease, filter .35s ease; }
.input-group { margin-bottom: 14px; }
.input-box {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 46px;
    padding: 0 12px;
    border: 1px solid #d8e2ee;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 1px 2px rgb(16 33 61 / 4%);
    transition: border-color .28s ease, box-shadow .28s ease, background-color .28s ease;
}
.input-box:hover { border-color: #a8c6eb; }
.input-box:focus-within { border-color: #0767d7; box-shadow: 0 0 0 3px rgb(7 103 215 / 13%), 0 2px 8px rgb(7 103 215 / 8%); }
.input-box input {
    flex: 1 1 0;
    width: 0;
    min-width: 0;
    padding: 10px 0;
    border: 0;
    border-radius: 0;
    outline: none;
    background-color: transparent;
    color: var(--ink);
    -webkit-text-fill-color: var(--ink);
    caret-color: #075bbb;
    font-size: 14px;
    line-height: 20px;
    transition: color .25s ease;
}
.input-box input::placeholder { color: #293c57; -webkit-text-fill-color: #293c57; opacity: 1; }
.input-box input:autofill { background-color: #fff !important; box-shadow: 0 0 0 1000px #fff inset !important; color: var(--ink); -webkit-text-fill-color: var(--ink); }
.input-box input:-webkit-autofill,
.input-box input:-webkit-autofill:hover,
.input-box input:-webkit-autofill:focus,
.input-box input:-webkit-autofill:active {
    background-color: #fff !important;
    background-image: none !important;
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
    box-shadow: 0 0 0 1000px #fff inset !important;
    -webkit-text-fill-color: var(--ink);
    caret-color: var(--ink);
    transition: background-color 99999s ease-out 0s;
}
.input-box:focus-within .user-icon { color: #075bbb; transform: translateY(-1px); }
.user-icon { flex: 0 0 16px; width: 16px; height: 16px; color: #53647d; transition: color .25s ease, transform .25s ease; }
.password-control { flex: 1 1 0; width: 0; }
.password-control > .password-toggle { right: 0; color: #53647d; }
.password-control > .password-toggle:hover { background: rgb(7 103 215 / 9%); }
.password-toggle svg { width: 17px; height: 17px; }
.login-options { display: flex; align-items: start; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 14px 0; font-size: 13px; color: #14233b; }
.remember { display: flex; align-items: center; gap: 8px; cursor: pointer; line-height: 20px; }
.remember input { width: 14px; height: 14px; margin: 1px 0 0; accent-color: #075bbb; }
.password-help { position: relative; }
.password-help summary { color: #075bbb; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; list-style: none; line-height: 20px; }
.password-help summary::-webkit-details-marker { display: none; }
.password-help p { position: absolute; z-index: 4; top: 22px; right: 0; margin: 8px 0 0; width: 235px; padding: 14px; border: 1px solid #dce5f0; border-radius: 10px; background: #fff; color: var(--ink); box-shadow: 0 8px 25px #14244926; line-height: 1.5; }
.login-btn {
    position: relative;
    width: 100%;
    min-height: 42px;
    padding: 10px 20px;
    border: 0;
    border-radius: 28px;
    background: #0767ed;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: bold;
    box-shadow: 0 6px 18px rgb(7 103 215 / 17%);
    cursor: pointer;
    transition: transform .3s cubic-bezier(.2,.75,.25,1), box-shadow .3s ease, background-color .3s ease;
}
.login-btn:hover { transform: translateY(-2px); background: #096ed4; box-shadow: 0 9px 22px rgb(7 103 215 / 23%); }
.login-btn:disabled { background: #1767be; opacity: 1; cursor: wait; transform: none; }
.login-btn:active { transform: translateY(0); }
.login-btn[aria-busy="true"] { display: flex; justify-content: center; align-items: center; gap: 10px; box-shadow: 0 0 0 4px rgb(7 103 215 / 13%), 0 8px 24px rgb(7 103 215 / 25%); }
.login-btn[aria-busy="true"]::before { content: ""; width: 17px; height: 17px; border: 2px solid rgb(255 255 255 / 45%); border-top-color: #fff; border-radius: 50%; animation: login-spin .8s cubic-bezier(.5,.1,.5,.9) infinite; }
.login-form[aria-busy="true"] .input-box { border-bottom-color: rgb(7 103 215 / 34%); }
.login-form[aria-busy="true"] .login-btn::after { content: ""; position: absolute; inset: -5px; border: 1px solid rgb(255 255 255 / 50%); border-radius: inherit; animation: login-pulse 1.5s ease-out infinite; pointer-events: none; }
@keyframes login-spin { to { transform: rotate(360deg); } }
@keyframes login-pulse { 0% { opacity: .65; transform: scale(.985); } 100% { opacity: 0; transform: scale(1.035); } }
.error { color: #842626; background: #fdecec; border-radius: 8px; padding: 12px; font-size: 13px; line-height: 1.5; margin: 0 0 16px; }
.roles { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 25px; font-size: 12px; }
.roles a { text-decoration: none; padding: 4px 0; }
.roles [aria-current] { font-weight: bold; border-bottom: 2px solid #2868da; }
.master-link { display: inline-block; margin-top: 18px; font-size: 13px; }
.login-brand { position: absolute; z-index: 1; inset: 0 0 0 48%; overflow: hidden; clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%); background: #14243b; }
.brand-art { position: absolute; inset: -20px; overflow: hidden; background: #14243b; }
.brand-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(9 22 42 / 43%), rgb(7 18 34 / 79%) 63%, rgb(7 18 34 / 88%)); }
.brand-art img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; opacity: .72; filter: blur(3px) saturate(.8); transform: scale(1.05); }
.brand-copy { position: absolute; z-index: 1; left: 30%; right: 9%; top: 50%; transform: translateY(-50%); color: #fff; }
.brand-copy, .brand-copy p, .brand-copy h2 { color: #fff; }
.brand-logo { display: block; width: min(150px, 52%); height: 120px; object-fit: contain; object-position: left center; margin: 0 0 9px; }
.brand-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 4px; text-align: left; margin: 0 0 14px; }
.brand-copy h2 { font: bold 38px/1.15 Georgia, serif; margin: 0 0 12px; }
.brand-copy h2 em { display: inline-block; color: #1683ff; font-weight: bold; font-size: 40px; }
.brand-description { color: #f1f5fb !important; font-size: 13px; line-height: 1.55; letter-spacing: .1px; margin: 0; max-width: 300px; }
.captcha-group > label { display: block; font-size: 13px; margin-bottom: 12px; }
.captcha-image-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.captcha-image-row img { max-width: 100%; height: auto; border: 1px solid #dce5f0; border-radius: 8px; }
.captcha-refresh { padding: 9px 12px; background: #eaf5ff; border: 1px solid #dce5f0; border-radius: 8px; cursor: pointer; color: var(--ink); font-size: 12px; }
.captcha-refresh:disabled { opacity: .6; cursor: wait; }
.captcha-help, .captcha-status { font-size: 12px; line-height: 1.5; color: #293c57; margin: 8px 0 0; }
.captcha-status:empty { display: none; }
.captcha-group input { letter-spacing: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.login-intro { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; background: #fff; opacity: 1; transition: opacity 1s ease-in-out; }
.login-intro-media { position: relative; isolation: isolate; width: min(860px, 88vw, calc(80svh * 16 / 9)); aspect-ratio: 16 / 9; overflow: hidden; background: #fff; }
.login-intro-media::after { content: ""; position: absolute; inset: 0; z-index: 1; border: 4px solid #fff; pointer-events: none; }
.login-intro video { display: block; width: 100%; height: 100%; object-fit: contain; background: #fff; border: 0; outline: 0; box-shadow: none; clip-path: inset(3px); opacity: 0; }
.login-intro video.is-ready { opacity: 1; }
.login-intro.is-exiting { opacity: 0; pointer-events: none; }
.skip-intro { position: absolute; right: 28px; bottom: 28px; border: 1px solid #c5cbd5; padding: 12px 18px; border-radius: 24px; background: #ffffffed; color: #183567; cursor: pointer; box-shadow: 0 4px 16px #0001; }
.skip-intro span { margin-left: 12px; }
.intro-running { overflow: hidden; }
.intro-running .login-card { opacity: 0; transform: translateY(10px) scale(.985); }
.intro-running.intro-finishing .login-card { opacity: 1; transform: none; transition: opacity 1s ease-in-out, transform 1s cubic-bezier(.2, .65, .3, 1); }
@media (max-width: 1000px) {
    .login-form-panel { padding: 38px; }
    .brand-copy { left: 25%; right: 8%; }
    .brand-eyebrow { letter-spacing: 2.5px; }
}
@media (max-width: 720px) {
    .tmta-login { padding: 20px 14px; }
    .login-card { width: 100%; flex-direction: column; border-radius: 18px; min-height: 0; }
    .login-form-panel { width: 100%; padding: 34px 26px 36px; }
    .login-form-panel h1 { font-size: 28px; }
    .login-form { margin-top: 26px; }
    .login-options { font-size: 13px; gap: 12px; }
    .login-brand { position: relative; inset: auto; clip-path: none; min-height: 310px; }
    .brand-copy { position: relative; inset: auto; top: auto; left: auto; right: auto; transform: none; padding: 25px 28px; max-width: 430px; margin: auto; }
    .brand-logo { width: 112px; height: 90px; margin-bottom: 7px; }
    .brand-copy h2 { font-size: 32px; margin-bottom: 10px; }
    .brand-copy h2 br { display: none; }
    .brand-copy h2 em { font-size: 36px; margin-left: 8px; }
    .brand-eyebrow { font-size: 10px; margin-bottom: 10px; }
    .brand-description { font-size: 14px; max-width: 270px; }
    .skip-intro { bottom: 20px; right: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
