/* หน้าเข้าสู่ระบบ / สมัครสมาชิก / ลืมรหัส — โทนเดียวกับหน้าเว็บหลัก */
.authpage{
  --blue:#45B4DE;--blue-d:#1C8FC4;--blue-dd:#0E5FA8;--blue-soft:#EAF5FC;--blue-soft2:#F5FAFE;--card-line:#E3EAF2;
  --green-d:#3FAF6A;--faint:#8A99A2;--red:#D9534F;
  position:relative;overflow:hidden;padding:34px 0 64px;
  background:
    radial-gradient(520px 320px at 8% 10%,rgba(255,196,222,.35),transparent 70%),
    radial-gradient(620px 380px at 95% 0%,rgba(150,214,247,.40),transparent 70%),
    radial-gradient(520px 360px at 60% 110%,rgba(206,190,250,.30),transparent 70%),
    linear-gradient(180deg,#F3F9FF,#FBFDFF);
}
.authpage *{box-sizing:border-box}
.authpage a{color:var(--blue-dd)}

/* วางคู่: ภาพครู + ฟอร์ม */
.authsplit{display:grid;grid-template-columns:1fr minmax(0,470px);gap:40px;align-items:start;max-width:1000px;margin:0 auto}
.authside{text-align:center;padding:40px 10px 10px;position:sticky;top:96px}
.authside .aside-img{width:min(340px,100%);height:auto;display:block;margin:0 auto 8px;filter:drop-shadow(0 18px 26px rgba(80,120,170,.18))}
.authside h2{font-family:'Prompt',sans-serif;font-weight:800;font-size:26px;color:var(--navy,#1B2A55);margin:0 0 12px}
.authside ul{list-style:none;padding:0;margin:0 auto;display:inline-flex;flex-direction:column;gap:9px;text-align:left}
.authside li{display:flex;gap:10px;align-items:flex-start;font-size:16px;color:#3A4A66}
.authside li::before{content:'✓';flex:0 0 24px;height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:13px;color:#fff;
  background:linear-gradient(180deg,#7FD3F7,#2FA8E6);box-shadow:inset 0 2px 3px rgba(255,255,255,.45);margin-top:1px}

/* การ์ดฟอร์ม */
.authpage .auth{max-width:460px;margin:0 auto;width:100%}
.authpage .auth.wide{max-width:500px}
.authsplit .auth{margin:0}
.authpage .card{position:relative;background:#fff;border-radius:28px;padding:34px 32px 28px;
  box-shadow:0 22px 50px rgba(80,120,170,.16),inset 0 0 0 1.5px #EEF3FA}
.authpage .aico{width:62px;height:62px;border-radius:20px;display:flex;align-items:center;justify-content:center;font-size:30px;margin:0 0 14px;
  background:linear-gradient(160deg,#E6F5FD,#D2ECFB);box-shadow:0 8px 18px rgba(47,168,230,.18),inset 0 2px 3px rgba(255,255,255,.8)}
.authpage h1{font-family:'Prompt',sans-serif;font-weight:800;font-size:28px;line-height:1.25;color:var(--navy,#1B2A55);margin:0 0 4px}
.authpage h3{color:var(--navy,#1B2A55)}
.authpage p.sub{color:#6A7A90;margin:0 0 20px;font-size:15.5px}
.authpage label{display:block;font-weight:600;font-size:14.5px;color:#2E3E5C;margin:14px 0 7px}
.authpage input:not([type=checkbox]):not([type=radio]):not([type=file]),.authpage select,.authpage textarea{
  width:100%;border:1.5px solid #E1EAF5;border-radius:14px;padding:13px 16px;font:inherit;font-size:16px;color:#2E3E5C;background:#FBFDFF;outline:0;
  transition:border-color .15s,box-shadow .15s,background .15s}
.authpage input:focus,.authpage select:focus,.authpage textarea:focus{border-color:#57BFEA;background:#fff;box-shadow:0 0 0 4px rgba(87,191,234,.16)}
.authpage input[type=file]{width:100%;padding:10px;border:1.5px dashed #BFDDF2;border-radius:14px;background:#F7FBFE;font-size:14px}
.authpage input[type=checkbox],.authpage input[type=radio]{width:auto;accent-color:#1C9AD6}

/* ปุ่ม */
.authpage .btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;cursor:pointer;text-decoration:none;white-space:nowrap;
  height:52px;padding:0 24px;border-radius:16px;font-family:'Prompt',sans-serif;font-weight:700;font-size:16.5px;color:#fff;
  background:linear-gradient(180deg,#62D5F7 0%,#37C1EE 45%,#01A5DE 100%);
  box-shadow:0 10px 20px rgba(1,165,222,.28),inset 0 2px 4px rgba(255,255,255,.45);transition:transform .12s,box-shadow .12s}
.authpage .btn:hover{transform:translateY(-1px);box-shadow:0 14px 26px rgba(1,165,222,.32),inset 0 2px 4px rgba(255,255,255,.45);color:#fff}
.authpage .btn.block{width:100%}
.authpage .btn.ghost{background:#fff;color:var(--blue-dd);font-size:15px;box-shadow:0 6px 14px rgba(110,140,190,.12),inset 0 0 0 1.5px #CFE5FB}
.authpage .btn.ghost:hover{background:#F5FAFE;color:var(--blue-dd)}
.authpage .btn.sm{height:40px;font-size:14px;padding:0 14px;border-radius:12px}
.authpage .alt{text-align:center;margin:16px 0 0;color:#6A7A90;font-size:15px}
.authpage .alt a{font-weight:600}

/* ข้อความแจ้งเตือน */
.authpage .msg{padding:12px 16px;border-radius:14px;font-size:15px;margin:0 0 16px;line-height:1.6}
.authpage .msg.err{background:#FDECEA;color:#9B322E}
.authpage .msg.ok{background:#E8F6E6;color:#2F6B22}
.authpage .msg.info{background:#EAF5FC;color:#145F8E}
.authpage .muted{color:#6A7A90;font-size:14px}
.authpage .tier-badge{display:inline-block;padding:4px 12px;border-radius:999px;font-size:13px;font-weight:600;color:#fff;background:var(--blue-d)}
.authpage .row-actions{display:flex;gap:6px;flex-wrap:wrap;align-items:center}

/* กล่องสมัคร VIP ในฟอร์ม */
.authpage .joinbox .jt{border-radius:16px!important}

@media(max-width:900px){
  .authsplit{grid-template-columns:1fr;gap:0;max-width:500px}
  .authside{display:none}
}
@media(max-width:560px){
  .authpage{padding:20px 0 44px}
  .authpage .card{padding:26px 20px 22px;border-radius:24px}
  .authpage h1{font-size:24px}
  .authpage .aico{width:54px;height:54px;font-size:26px;border-radius:17px}
}
.authpage .klnote{margin:16px 0 0;padding:12px 14px;border-radius:14px;background:#F1F7FF;color:#28507A;font-size:14.5px;text-align:center;box-shadow:inset 0 0 0 1.5px #D6E8FA}
