/* ════════════════════════════════════════════
   login.css  —  ICT-PMS Login Page
   "Split Navy" layout, 60/30/10 palette:
   60% dominant  – off-white              #FAFBF9
   30% secondary – emerald green          #1E6B4E
   10% accent    – deep navy blue         #16324D  (CTA + one highlight only)
   ════════════════════════════════════════════ */

*{box-sizing:border-box;margin:0;padding:0;}

body{
  font-family:'Kanit',sans-serif;
  background:#FAFBF9;
  min-height:100vh;
}

/* ── SPLIT SHELL ── */
.split{
  min-height:100dvh;
  display:flex;
}

/* ── LEFT PANEL (30% — emerald green, diagonal cut) ── */
.split-left{
  flex:1.05;
  position:relative;
  overflow:hidden;
  background:
    linear-gradient(118deg, transparent 20%, rgba(255,255,255,.05) 38%, transparent 56%),
    linear-gradient(150deg, #0d3320 0%, #175a37 24%, #1f7a49 40%, #12432a 60%, #072012 80%, #020a06 100%);
  color:#fff;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:56px 56px 40px;
  clip-path:polygon(0 0,100% 0,86% 100%,0 100%);
}
.split-left::before{
  content:"";
  position:absolute;inset:0;
  background:
    linear-gradient(200deg, transparent 45%, rgba(0,0,0,.4) 100%),
    repeating-linear-gradient(135deg,rgba(255,255,255,.035) 0 1px,transparent 1px 40px);
  pointer-events:none;
}

.brand-mark{position:absolute;top:28px;left:56px;z-index:2;display:flex;align-items:center;gap:12px;}
.brand-mark-divider{width:1px;height:16px;background:rgba(255,255,255,.25);}
.brand-mark-label{font-size:12px;color:rgba(255,255,255,.75);white-space:nowrap;}
.brand-sq{
  display:inline-flex;
  align-items:center;
  gap:2px;
  font-size:15px;
  font-weight:700;
  letter-spacing:.02em;
  color:#fff;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.25);
  padding:8px 14px;
  border-radius:8px;
}
.brand-sq span{color:#9fd6b6;}

.brand-copy{position:relative;}
.brand-copy h1{
  font-size:clamp(22px,2.6vw,30px);
  font-weight:600;
  line-height:1.4;
  margin-bottom:14px;
}
.brand-copy h1 em{color:#9fd6b6;font-style:normal;}
.school-name{font-size:14px;font-weight:500;color:#fff;margin-bottom:3px;}
.school-sub{font-size:11.5px;color:rgba(255,255,255,.55);}

.qr-box{
  position:relative;
  margin-top:32px;
  display:flex;
  align-items:center;
  gap:14px;
}
.qr-box img{
  width:78px;height:78px;
  background:#fff;
  border-radius:8px;
  padding:6px;
  flex-shrink:0;
}
.qr-label{font-size:11.5px;color:rgba(255,255,255,.6);max-width:150px;line-height:1.5;}

.feature-list{
  position:relative;
  list-style:none;
  margin-top:28px;
  display:flex;
  flex-direction:column;
  gap:15px;
  max-width:340px;
}
.feature-list li{
  display:flex;
  align-items:center;
  gap:13px;
  font-size:12.8px;
  color:rgba(255,255,255,.85);
  line-height:1.5;
  padding-left:14px;
  border-left:2px solid rgba(159,214,182,.5);
}
.feature-ico{
  flex-shrink:0;
  font-size:19px !important;
  color:#9fd6b6;
}

.brand-foot{
  position:relative;
  font-size:10.5px;
  color:rgba(255,255,255,.35);
  margin-top:36px;
}

/* ── RIGHT PANEL (60% — off-white) ── */
.split-right{
  flex:1;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:40px 30px;
  background:#FAFBF9;
}

/* ── LOGIN CARD ── */
.login-card{width:100%;max-width:520px;}
.login-card-hd{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:20px;
  font-weight:600;
  color:#16324D;
  margin-bottom:4px;
}
.login-card-hd .material-symbols-outlined{font-size:22px;color:#1E6B4E;}
.login-card-sub{font-size:12.5px;color:#8a938f;margin-bottom:26px;}

/* ── FORM ── */
.form-body{margin-bottom:4px;}
.form-group{margin-bottom:16px;}
.form-group label{
  display:block;
  font-size:12px;
  color:#4b544f;
  margin-bottom:6px;
  font-weight:500;
}
.inp-row{
  position:relative;
  display:flex;
  align-items:center;
}
.inp-row input{
  width:100%;
  height:42px;
  border:1px solid #DEE6E0;
  border-radius:8px;
  background:#fff;
  padding:0 40px 0 13px;
  font-size:14.5px;
  font-family:'Kanit',sans-serif;
  color:#1a1a1a;
  outline:none;
  transition:border-color .2s,box-shadow .2s;
}
.inp-row input:focus{
  border-color:#3FA772;
  box-shadow:0 0 0 3px rgba(63,167,114,.14);
}
.inp-row input::placeholder{color:#b7c0ba;}
.inp-icon{
  position:absolute;right:12px;
  color:#1E6B4E;
  pointer-events:none;
  display:flex;align-items:center;
}
.inp-icon .material-symbols-outlined{font-size:18px;}
.eye-btn{
  position:absolute;right:10px;
  color:#9aa5a0;
  cursor:pointer;background:none;border:none;padding:0;
  line-height:1;display:flex;align-items:center;
}
.eye-btn:hover{color:#1E6B4E;}
.eye-btn .material-symbols-outlined{font-size:18px;}

.pdpa-group{margin-bottom:14px;}
.pdpa-check{
  display:flex;
  align-items:flex-start;
  gap:9px;
  cursor:pointer;
  font-size:12px;
  color:#6b746f;
  line-height:1.6;
}
.pdpa-check input[type="checkbox"]{
  flex-shrink:0;
  width:16px;height:16px;
  margin-top:2px;
  accent-color:#1E6B4E;
  cursor:pointer;
}
.pdpa-check a{color:#1E6B4E;font-weight:600;text-decoration:underline;}
.pdpa-check a:hover{color:#16324D;}

/* ── SUBMIT (10% navy accent — the one CTA pop) ── */
.form-footer{margin-top:6px;}
.btn-submit{
  width:100%;
  height:44px;
  padding:0 24px;
  background:#16324D;
  color:#fff;
  border:none;
  border-radius:8px;
  font-size:14px;
  font-family:'Kanit',sans-serif;
  font-weight:600;
  cursor:pointer;
  transition:background .15s;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}
.btn-submit:hover{background:#0f2436;}
.btn-submit:disabled{background:#9db2c2;cursor:default;}
.btn-submit .material-symbols-outlined{font-size:17px;}

/* ── SOCIAL LOGIN ── */
.login-divider{
  display:flex;
  align-items:center;
  gap:10px;
  margin:18px 0 14px;
}
.login-divider::before,
.login-divider::after{
  content:"";
  flex:1;
  height:1px;
  background:#E3EAE4;
}
.login-divider span{font-size:11.5px;color:#9aa5a0;white-space:nowrap;}
.social-btns{margin-bottom:20px;}
.btn-google{
  width:100%;
  height:40px;
  background:#fff;
  color:#3c4043;
  border:1px solid #dadce0;
  border-radius:8px;
  font-size:13px;
  font-family:'Kanit',sans-serif;
  font-weight:500;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  text-decoration:none;
  transition:background .15s,box-shadow .15s;
}
.btn-google:hover{background:#f8f9fa;box-shadow:0 1px 3px rgba(0,0,0,.08);}

/* ── LINKS ── */
/* ── สมัครสมาชิก CTA ── */
.register-cta{
  margin-top:18px;
  padding-top:18px;
  border-top:1px solid #E3EAE4;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
}
.register-cta span{
  font-size:13px;
  color:#6b746f;
}
.btn-register{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:8px 16px;
  border:1.5px solid #1E6B4E;
  border-radius:8px;
  color:#1E6B4E;
  background:transparent;
  font-family:'Kanit',sans-serif;
  font-size:13.5px;
  font-weight:600;
  text-decoration:none;
  transition:background .15s,color .15s;
}
.btn-register .material-symbols-outlined{font-size:17px;}
.btn-register:hover{background:#1E6B4E;color:#fff;}

.card-links{
  text-align:center;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}
.card-links a{
  font-size:12px;
  color:#8a938f;
  text-decoration:none;
  display:flex;
  align-items:center;
  gap:3px;
}
.card-links a:hover{color:#16324D;}
.card-links a .material-symbols-outlined{font-size:14px;}
.card-links .sep{color:#c7d0ca;}

/* ── SPIN ANIMATION ── */
@keyframes spin{to{transform:rotate(360deg);}}

/* ── RESPONSIVE ── */
@media(max-width:900px){
  .split-left{padding:44px 40px 32px;}
  .brand-mark{left:40px;}
  .brand-mark-label{display:none;}
  .brand-mark-divider{display:none;}
}

@media(max-width:700px){
  .split{flex-direction:column;}
  .split-left{
    clip-path:none;
    padding:36px 26px 30px;
    justify-content:flex-start;
  }
  .brand-mark{
    position:static;
    left:auto;
    margin-bottom:20px;
  }
  .brand-copy{padding-top:0;}
  .brand-copy h1{font-size:21px;}
  .qr-box{display:none;}
  .split-right{padding:32px 22px 40px;}
}