:root{--ksg-red:#D72638;--ksg-red-bright:#F22B29;--ksg-violet:#140F2D;--ksg-blue:#3F88C5;--ksg-white:#fff;--ksg-off:#F7F7F9;--ksg-border:#E6E4EB;--ksg-muted:#747182}
*{box-sizing:border-box}html{height:100%;background:var(--ksg-off)}
body.ksg-auth-page{height:100dvh;min-height:600px;margin:0;overflow:hidden;display:grid;grid-template-rows:62px minmax(0,1fr) 36px;color:var(--ksg-violet);background:radial-gradient(circle at 12% 14%,rgba(215,38,56,.10),transparent 28rem),radial-gradient(circle at 92% 82%,rgba(63,136,197,.07),transparent 26rem),var(--ksg-off);font-family:Inter,Arial,sans-serif}
.ksg-auth-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 30px;border-bottom:1px solid var(--ksg-border);background:rgba(255,255,255,.94);backdrop-filter:blur(14px)}
.ksg-auth-logo{display:flex;align-items:center;text-decoration:none}.ksg-auth-logo img{display:block;width:auto;height:32px;max-width:170px;object-fit:contain;background:transparent}.ksg-auth-back{color:var(--ksg-violet);font-size:11px;font-weight:800;letter-spacing:.06em;text-decoration:none;text-transform:uppercase}.ksg-auth-back:hover{color:var(--ksg-red)}
.ksg-auth-main{min-height:0;display:flex;align-items:center;justify-content:center;padding:14px 18px}
.auth-panel{position:relative;width:min(100%,500px);max-height:100%;min-width:0;overflow:hidden;padding:27px 34px 24px;border:1px solid var(--ksg-border);background:#fff;box-shadow:0 24px 64px rgba(20,15,45,.10)}.auth-panel::before{content:"";position:absolute;inset:0 0 auto;height:5px;background:var(--ksg-red)}
.auth-mark-wrap{display:flex;align-items:center;justify-content:center;width:100%;margin-bottom:12px}.auth-mark{display:block;width:50px;height:50px;object-fit:contain;background:transparent}
.auth-copy{text-align:center}.auth-kicker{display:block;margin-bottom:6px;color:var(--ksg-red);font:800 12px "Barlow Condensed",Arial,sans-serif;letter-spacing:.14em;text-transform:uppercase}.auth-copy h1{max-width:390px;margin:0 auto;color:var(--ksg-violet);font:800 clamp(37px,5vw,49px)/.94 "Barlow Condensed",Arial,sans-serif;letter-spacing:-.025em;text-transform:uppercase}.auth-copy p{max-width:400px;margin:10px auto 0;color:var(--ksg-muted);font-size:13px;line-height:1.45}.auth-copy strong{color:var(--ksg-violet);overflow-wrap:anywhere}
.auth-message{width:100%;margin-top:12px;padding:9px 12px;border-left:4px solid;font-size:12px;line-height:1.35}.auth-message-error{border-color:var(--ksg-red);background:#FFF0F2;color:#8A1722}.auth-message-success{border-color:var(--ksg-blue);background:#EEF7FC;color:#215E8D}
.auth-form{display:flex;flex-direction:column;gap:11px;width:100%;margin-top:15px}.auth-field{display:flex;flex-direction:column;gap:6px;width:100%}.auth-field label{font-size:12px;font-weight:800}.auth-field input{appearance:none;width:100%;height:48px;margin:0;padding:0 14px;border:1px solid #C9C6D1;border-radius:0;outline:0;background:#fff;color:var(--ksg-violet);font:16px/1 Inter,Arial,sans-serif}.auth-field input:focus{border-color:var(--ksg-red);box-shadow:0 0 0 3px rgba(215,38,56,.10)}.auth-field input::placeholder{color:#A9A6B0;opacity:1}.auth-code{text-align:center!important;font:800 27px/1 "Barlow Condensed",Arial,sans-serif!important;letter-spacing:.25em!important}
.auth-primary{appearance:none;display:flex;align-items:center;justify-content:space-between;gap:18px;width:100%;height:48px;padding:0 16px;border:0;background:var(--ksg-red);color:#fff;font:800 12px/1 Inter,Arial,sans-serif;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap;cursor:pointer}.auth-primary:hover{background:var(--ksg-red-bright)}.auth-arrow{font-size:18px}.auth-secondary{display:block;margin-top:10px;color:var(--ksg-red);font-size:12px;font-weight:800;text-align:center;text-decoration:none}.auth-secondary:hover{text-decoration:underline}
.auth-facts{display:flex;justify-content:center;flex-wrap:wrap;gap:5px 14px;margin-top:13px;padding-top:11px;border-top:1px solid var(--ksg-border);color:#85818F;font-size:9px;font-weight:800;letter-spacing:.05em;text-transform:uppercase}.auth-facts span{white-space:nowrap}
.ksg-auth-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 30px;color:#898694;font-size:9px;font-weight:700;text-transform:uppercase}
@media(max-height:680px) and (min-width:621px){body.ksg-auth-page{grid-template-rows:54px minmax(0,1fr) 28px}.ksg-auth-header{padding:0 24px}.ksg-auth-logo img{height:28px}.ksg-auth-main{padding:8px 18px}.auth-panel{padding:20px 30px 18px}.auth-mark{width:42px;height:42px}.auth-mark-wrap{margin-bottom:8px}.auth-copy h1{font-size:38px}.auth-copy p{margin-top:7px}.auth-form{margin-top:11px}.auth-facts{margin-top:9px;padding-top:8px}}
@media(max-width:620px){html{height:auto}body.ksg-auth-page{height:auto;min-height:100dvh;overflow:auto;grid-template-rows:66px 1fr auto}.ksg-auth-header{padding:0 18px}.ksg-auth-logo img{height:30px;max-width:150px}.ksg-auth-back{font-size:10px}.ksg-auth-main{align-items:flex-start;padding:26px 14px 36px}.auth-panel{max-height:none;padding:30px 22px}.auth-mark{width:54px;height:54px}.auth-mark-wrap{margin-bottom:16px}.auth-copy h1{font-size:42px}.auth-copy p{font-size:14px;line-height:1.55}.auth-message{font-size:13px}.auth-form{gap:16px;margin-top:24px}.auth-field{gap:8px}.auth-field label{font-size:13px}.auth-field input,.auth-primary{height:54px;font-size:16px}.auth-code{font-size:30px!important}.auth-facts{display:grid;gap:7px;margin-top:20px;padding-top:17px}.ksg-auth-footer{padding:14px 18px;flex-direction:column;align-items:flex-start;gap:4px;font-size:10px}}

/* KSG_LOGIN_MATH_CHALLENGE_V1 */
.auth-bot-check {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 104px;
    gap: 14px;
    align-items: end;
    padding: 14px 15px;
    border: 1px solid rgba(215, 38, 56, .22);
    border-radius: 14px;
    background: rgba(215, 38, 56, .045);
}
.auth-bot-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}
.auth-bot-kicker {
    color: #d72638;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.auth-bot-copy strong {
    font-size: .96rem;
    line-height: 1.2;
}
.auth-bot-copy small {
    opacity: .65;
    font-size: .72rem;
    line-height: 1.35;
}
.auth-bot-answer {
    margin: 0 !important;
}
.auth-bot-answer input {
    text-align: center;
}
@media (max-width: 520px) {
    .auth-bot-check {
        grid-template-columns: minmax(0, 1fr) 92px;
        gap: 10px;
        padding: 12px;
    }
    .auth-bot-copy small {
        display: none;
    }
}
/* /KSG_LOGIN_MATH_CHALLENGE_V1 */
