:root { color-scheme: light; font-family: Inter, "Noto Sans JP", system-ui, sans-serif; background: #edf3f8; color: #18344f; }
* { box-sizing: border-box; }
body { min-height: 100vh; margin: 0; background: radial-gradient(circle at 15% 12%, rgba(91,151,231,.24), transparent 32%), linear-gradient(145deg, #f8fbfe, #e8f0f7); }
.login-shell { display: grid; min-height: 100vh; place-items: center; padding: 24px; }
.login-card { width: min(100%, 470px); border: 1px solid rgba(144,168,191,.34); border-radius: 30px; padding: clamp(28px, 7vw, 52px); background: rgba(255,255,255,.94); box-shadow: 0 28px 80px rgba(33,57,82,.14); }
.login-brand { display: inline-flex; align-items: center; gap: 11px; color: #18344f; text-decoration: none; letter-spacing: .08em; }
.login-brand span { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; background: #2868cf; color: #fff; font-weight: 900; }
.login-eyebrow { margin: 42px 0 8px; color: #2868cf; font-size: .69rem; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(2.2rem, 8vw, 3.4rem); line-height: 1.08; letter-spacing: -.05em; }
.login-copy { margin: 18px 0 28px; color: #60758c; line-height: 1.75; }
form { display: grid; gap: 17px; }
label { display: grid; gap: 7px; font-size: .82rem; font-weight: 800; }
input { width: 100%; border: 1px solid #c8d6e5; border-radius: 14px; padding: 14px 15px; background: #fff; color: #18344f; font: inherit; }
input:focus { border-color: #2868cf; outline: 3px solid rgba(40,104,207,.14); }
button { display: flex; align-items: center; justify-content: space-between; border: 0; border-radius: 15px; padding: 15px 18px; background: #2868cf; color: #fff; font: inherit; font-weight: 900; cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
#login-status { min-height: 1.4em; margin: 0; color: #b23b31; font-size: .82rem; }
.login-boundary { display: block; margin-top: 22px; color: #78899c; line-height: 1.6; }

/* Self-registration v1.1 only; login/activation native fields keep their existing behavior. */
#learner-signup .signup-honeypot { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
#learner-signup .signup-check { display:flex; align-items:flex-start; gap:9px; line-height:1.6; }
#learner-signup .signup-check > input { width:20px; height:20px; flex:0 0 20px; }
#learner-signup .signup-terms-link { color:#2868cf; font-size:.82rem; }
#signup-status { min-height:1.4em; margin:0; color:#b23b31; font-size:.82rem; }
#learner-login .login-role-hint { font-size:.72rem; font-weight:400; color:#60758c; line-height:1.5; }

/* Keep login heading/form spacing after removing the introductory copy. */
.login-card > h1 + #learner-login { margin-top: 28px; }

/* Item74: generic login guidance keeps its English sentence below Japanese. */
#login-status { white-space:pre-line; line-height:1.6; }

/* The logo alone heads the login card. */
.login-brand--logo { display: flex; justify-content: center; }
.login-brand--logo img { display: block; width: auto; height: 56px; max-width: 100%; }
.login-brand--logo + #learner-login { margin-top: 30px; }
.login-brand--logo + #login-title { margin-top: 30px; }
#login-title + #learner-signup { margin-top: 26px; }
@media (max-width: 480px) { .login-brand--logo img { height: 46px; } }

/* A short line under a field; the form gap is pulled in so it reads with the field above. */
.login-field-note { margin: -10px 0 0; color: #5b6b7d; font-size: .78rem; line-height: 1.5; }
