/* forgot_password.css — ธีมม่วง พื้นหลังเบลอ (แยกจาก admin.css) */
:root{
  --p:#6f42c1; --p-dk:#563d7c; --p-lt:#8c68cd; --p-bg:#f1ebfb;
  --ink:#2a2338; --soft:#6c6580; --line:#ddd5ee;
  --ok:#17784a; --ok-bg:#e4f5ec; --err:#b3264f; --err-bg:#fde8ee;
}
*{box-sizing:border-box;-webkit-font-smoothing:antialiased}

body{
  margin:0; min-height:100vh; padding:20px;
  display:grid; place-items:center;
  font:15px/1.6 'Noto Sans Thai',sans-serif; color:var(--ink);
  background:#3b2a63;                       /* สำรองกรณีรูปโหลดไม่ได้ */
}
/* พื้นหลังรูปเบลอ + ฟิลเตอร์สีม่วงทับ */
body::before{
  content:""; position:fixed; inset:-24px; z-index:-1;
  background:url('../images/img/BgStory00.jpg') center/cover no-repeat;
  filter:blur(10px); transform:scale(1.04);
}
body::after{
  content:""; position:fixed; inset:0; z-index:-1;
  background:linear-gradient(135deg,rgba(86,61,124,.62),rgba(111,66,193,.38));
}

/* การ์ด */
.card{
  width:min(420px,100%); overflow:hidden; border-radius:18px;
  background:rgba(255,255,255,.95);
  box-shadow:0 24px 60px rgba(30,15,60,.35);
}
.card-head{
  padding:28px 24px 24px; text-align:center; color:#fff;
  background:linear-gradient(135deg,var(--p) 0%,var(--p-dk) 100%);
}
.logo{
  width:56px; height:56px; margin:0 auto 12px; border-radius:50%;
  display:grid; place-items:center; font-size:22px;
  background:rgba(255,255,255,.2);
}
.card-head h1{margin:0; font-size:1.35rem; font-weight:700}
.card-head p{margin:4px 0 0; opacity:.9; font-size:.92rem}
.card-body{padding:28px}

/* ฟอร์ม */
form{display:grid; gap:16px}
label{display:block; margin-bottom:6px; font-weight:600}
input[type=text],input[type=password]{
  width:100%; padding:11px 14px; font:inherit; color:var(--ink);
  background:#fff; border:1.5px solid var(--line); border-radius:10px;
  transition:border-color .15s, box-shadow .15s;
}
input:focus{outline:0; border-color:var(--p-lt); box-shadow:0 0 0 4px rgba(111,66,193,.15)}
.check{display:flex; align-items:center; gap:8px; margin:0; font-weight:400; color:var(--soft); cursor:pointer}
.check input{width:16px; height:16px; accent-color:var(--p)}

.btn{
  display:flex; align-items:center; justify-content:center; gap:8px;
  height:46px; border:0; border-radius:10px; cursor:pointer;
  font:inherit; font-weight:600; color:#fff; text-decoration:none;
  background:linear-gradient(135deg,var(--p) 0%,var(--p-dk) 100%);
  transition:transform .15s, box-shadow .15s;
}
.btn:hover{transform:translateY(-1px); box-shadow:0 8px 20px rgba(111,66,193,.35)}
:focus-visible{outline:3px solid rgba(140,104,205,.55); outline-offset:2px}

/* แจ้งเตือน */
.alert{display:flex; gap:10px; align-items:flex-start; padding:12px 14px; border-radius:10px; font-size:.92rem}
.alert.ok{background:var(--ok-bg); color:var(--ok)}
.alert.err{background:var(--err-bg); color:var(--err)}

.back{margin:20px 0 0; text-align:center}
.back a{color:var(--p); text-decoration:none}
.back a:hover{color:var(--p-dk); text-decoration:underline}

@media (prefers-reduced-motion:reduce){*{transition:none!important}}