@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Thai:wght@400;500;600;700&display=swap');

:root { color-scheme: light; font-family: "IBM Plex Sans Thai", Tahoma, sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; color: #17324b; background: #f5f8fb; }
.login-shell { display: grid; min-height: 100vh; grid-template-columns: minmax(360px, 1.05fr) minmax(480px, .95fr); }
.welcome { position: relative; display: flex; min-height: 100vh; padding: clamp(40px, 6vw, 88px); overflow: hidden; color: #fff; background: linear-gradient(145deg, rgba(6,35,65,.97), rgba(17,79,126,.91)), url("images/wall-nurpn.jpg") center/cover; flex-direction: column; justify-content: center; }
.welcome::before, .welcome::after { position: absolute; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; content: ""; }
.welcome::before { width: 440px; height: 440px; top: -190px; right: -180px; }
.welcome::after { width: 260px; height: 260px; right: 8%; bottom: -130px; }
.welcome__content { position: relative; z-index: 1; max-width: 650px; }
.faculty-logo { width: min(430px, 82%); height: auto; margin-bottom: clamp(42px, 7vh, 76px); filter: brightness(0) invert(1); }
.eyebrow, .card-eyebrow { margin: 0 0 14px; font-size: 12px; font-weight: 600; letter-spacing: .17em; }
.eyebrow { color: #8fd5ff; }
h1 { margin: 0; font-size: clamp(42px, 5.2vw, 76px); line-height: 1.06; letter-spacing: -.04em; }
h1 span { color: #65c5f2; }
.welcome__description { max-width: 590px; margin: 28px 0 0; color: #d5e6f2; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.75; }
.welcome__footer { position: absolute; bottom: 34px; left: clamp(40px, 6vw, 88px); color: rgba(255,255,255,.58); font-size: 13px; letter-spacing: .08em; }
.login-panel { display: flex; padding: 42px; align-items: center; justify-content: center; flex-direction: column; }
.login-card { width: min(100%, 480px); padding: clamp(32px, 5vw, 54px); background: #fff; border: 1px solid #e1eaf0; border-radius: 24px; box-shadow: 0 24px 70px rgba(13,49,84,.12); }
.sso-mark { display: grid; width: 62px; height: 62px; margin-bottom: 26px; color: #fff; background: linear-gradient(145deg, #1678c8, #0d426f); border-radius: 18px; box-shadow: 0 10px 24px rgba(22,120,200,.24); place-items: center; }
.sso-mark svg { width: 34px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card-eyebrow { color: #1678c8; }
h2 { margin: 0; color: #0d3154; font-size: 36px; line-height: 1.2; }
.login-card__description { margin: 15px 0 30px; color: #687d8e; font-size: 16px; line-height: 1.7; }
.sso-button { display: flex; min-height: 76px; padding: 13px 16px; color: #fff; background: #123f6c; border-radius: 14px; box-shadow: 0 10px 24px rgba(13,49,84,.2); text-decoration: none; align-items: center; gap: 14px; transition: transform .2s, background .2s, box-shadow .2s; }
.sso-button:hover { background: #0a3157; box-shadow: 0 14px 30px rgba(13,49,84,.25); transform: translateY(-2px); }
.sso-button:focus-visible { outline: 3px solid #66c7f2; outline-offset: 3px; }
.sso-button__icon { display: grid; width: 48px; height: 48px; flex: 0 0 auto; color: #123f6c; background: #fff; border-radius: 11px; font-size: 13px; font-weight: 700; place-items: center; }
.sso-button > span:nth-child(2) { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.sso-button strong { font-size: 16px; }
.sso-button small { color: #c9dbea; font-size: 12px; }
.arrow { width: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.security-note { display: flex; margin-top: 28px; padding-top: 24px; color: #718495; border-top: 1px solid #e5edf2; gap: 12px; }
.security-note svg { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 3px; fill: none; stroke: #3c96ce; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.security-note p { margin: 0; font-size: 12px; line-height: 1.65; }
.security-note strong { color: #405a70; font-size: 13px; }
.support { margin: 22px 0 0; color: #7b8d9b; font-size: 12px; text-align: center; }
@media (max-width: 860px) {
  .login-shell { grid-template-columns: 1fr; }
  .welcome { min-height: 370px; padding: 42px 28px 64px; justify-content: flex-end; }
  .faculty-logo { width: min(350px, 82%); margin-bottom: 32px; }
  h1 { font-size: clamp(38px, 10vw, 58px); }
  .welcome__description { display: none; }
  .welcome__footer { bottom: 22px; left: 28px; }
  .login-panel { padding: 30px 20px 42px; }
}
@media (max-width: 480px) {
  .welcome { min-height: 310px; }
  .login-card { padding: 28px 22px; border-radius: 20px; }
  h2 { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) { .sso-button { transition: none; } }
