/* public/css/auth.css */
:root{
  --brand:#fe6700;        /* RMUTI Orange */
  --navy:#091452;         /* Deep Navy */
  --bg:#f5f6f8;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#64748b;
  --border:#e5e7eb;
  --shadow:0 18px 50px rgba(2,6,23,.12);
  --radius:22px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:Tahoma,system-ui,sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* Layout wrapper */
.auth-wrap{
  min-height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
}

.auth-shell{
  width:min(1080px, 100%);
  background: var(--card);
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
  display:grid;
  grid-template-columns: 420px 1fr;
}

/* LEFT panel */
.auth-left{
  padding:22px;
  background:#fff;
}

.brand{
  display:flex;
  gap:10px;
  align-items:center;
  margin-bottom:16px;
}

.brand img{
  width:44px;height:44px;
  object-fit:contain;
}

.brand .t1{font-weight:900; font-size:14px; color:var(--navy); line-height:1.1}
.brand .t2{font-size:12px; color:var(--muted)}

.auth-title{
  margin:6px 0 4px;
  font-size:20px;
  font-weight:900;
}

.auth-sub{margin:0 0 14px; color:var(--muted); font-size:13px; line-height:1.5}

.form{
  display:flex;
  flex-direction:column;
  gap:10px;
}

label{font-size:13px; color:#475569; font-weight:700}
.input, select{
  width:100%;
  padding:11px 12px;
  border:1px solid #cbd5e1;
  border-radius:14px;
  outline:none;
  background:#fff;
  font-size:14px;
}
.input:focus, select:focus{
  border-color: rgba(254,103,0,.55);
  box-shadow: 0 0 0 4px rgba(254,103,0,.15);
}

.btn{
  width:100%;
  border:0;
  border-radius:14px;
  padding:12px 14px;
  font-weight:900;
  cursor:pointer;
  font-size:14px;
}
.btn-primary{background: var(--navy); color:#fff}
.btn-accent{background: var(--brand); color:#fff}
.btn-ghost{background:#fff; color:var(--navy); border:1px solid #cbd5e1}

.row{
  display:flex;
  gap:10px;
}
.row > *{flex:1}

.err{
  margin-top:6px;
  color:#b91c1c;
  font-weight:800;
  font-size:13px;
}

/* RIGHT panel (welcome) */
.auth-right{
  position:relative;
  padding:26px;
  color:#fff;
  background:
    radial-gradient(1200px 500px at 80% 10%, rgba(254,103,0,.85), rgba(254,103,0,0) 55%),
    radial-gradient(900px 520px at 30% 75%, rgba(9,20,82,.95), rgba(9,20,82,0) 60%),
    linear-gradient(135deg, #10a3b3 0%, #1c6fd1 45%, #091452 100%);
}

.auth-right::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,0));
  pointer-events:none;
}

.welcome{
  position:relative;
  max-width:520px;
  margin:0 auto;
  padding:22px;
}
.welcome h2{
  margin:0 0 10px;
  font-size:46px;
  letter-spacing:.2px;
}
.welcome p{
  margin:0;
  opacity:.92;
  line-height:1.6;
  font-size:14px;
}
.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  background: rgba(255,255,255,.16);
  border:1px solid rgba(255,255,255,.22);
  margin-bottom:14px;
  font-weight:900;
  font-size:12px;
}

/* bottom links */
.auth-foot{
  margin-top:14px;
  display:flex;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
  font-size:13px;
  color:var(--muted);
}
.auth-foot a{
  color:var(--navy);
  font-weight:900;
  text-decoration:none;
}

/* Responsive */
@media (max-width: 900px){
  .auth-shell{grid-template-columns: 1fr}
  .auth-right{display:none;} /* มือถือให้โฟกัสที่ฟอร์ม */
  .auth-left{padding:18px}
}

/* ---- reveal toggle (bank/government style: icon only, no button frame) ---- */
.input-wrap{position:relative}
.input-wrap .input{padding-right:44px}

.eye-btn{
  position:absolute; right:12px; top:50%;
  transform:translateY(-50%);
  width:22px; height:22px;
  border:0;
  background:transparent;
  padding:0;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#64748b;
}

.eye-btn:hover{color:#334155}
.eye-btn:focus{outline:none}
.eye-btn:focus-visible{
  outline: 3px solid rgba(254,103,0,.25);
  outline-offset: 4px;
  border-radius: 8px;
}

.eye-btn svg{width:20px;height:20px;display:block}

@media (max-width: 420px){
  .input-wrap .input{padding-right:40px}
  .eye-btn{right:10px}
}
