/**
 * ============================================================
 * ไฟล์  : assets/css/forgot-password.css
 * ระบบ  : PathoBio (ระบบหลัก)
 * ============================================================
 * หน้าที่: Styles สำหรับ auth standalone pages
 *   - auth/forgot_password.php
 * ใครมีสิทธิเข้าถึง :
 *   - ไม่มี (static asset, โหลดเฉพาะตอนเปิดหน้า auth/forgot_password.php — หน้าสาธารณะ)
 *
 * การเปลี่ยนแปลงจากเวอร์ชันก่อน:
 *   - [2026-06-19] ตัด "ตำแหน่ง:" ออก (รวมเข้า "ไฟล์ :") + เพิ่ม "ใครมีสิทธิเข้าถึง :" +
 *     เพิ่ม .hp-field (ซ่อนช่อง honeypot กันบอท — CONVENTIONS.md 5.9)
 * ============================================================
 */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Sarabun', sans-serif;
    background: linear-gradient(135deg, #0f4c81, #1565c0);
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.wrapper { width: 100%; max-width: 440px; }
.lang-switch { display: flex; justify-content: flex-end; gap: 6px; margin-bottom: 12px; }
.lang-btn {
    color: rgba(255,255,255,0.7); text-decoration: none;
    font-size: 13px; padding: 4px 10px; border-radius: 20px; transition: all 0.2s;
}
.lang-btn:hover, .lang-btn.active { background: rgba(255,255,255,0.2); color: #fff; }
.card {
    background: #fff; border-radius: 16px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.3); overflow: hidden;
}
.card-header {
    padding: 28px 32px 20px; border-bottom: 1px solid #f3f4f6;
    display: flex; align-items: center; gap: 14px;
}
.card-icon {
    width: 48px; height: 48px; background: #eff6ff; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; flex-shrink: 0;
}
.card-title { font-size: 18px; font-weight: 700; color: #0f4c81; }
.card-body  { padding: 28px 32px; }
.alert { padding: 12px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 20px; line-height: 1.6; }
.alert-error   { background:#fef2f2; color:#dc2626; border:1px solid #fecaca; }
.alert-success { background:#f0fdf4; color:#16a34a; border:1px solid #bbf7d0; }
.form-field  { margin-bottom: 18px; }
.form-label  { display: block; font-size: 13px; font-weight: 600; color: #4b5563; margin-bottom: 7px; }
.form-input {
    width: 100%; padding: 11px 14px;
    border: 1.5px solid #e5e7eb; border-radius: 8px;
    font-family: 'Sarabun', sans-serif; font-size: 14px;
    color: #111827; outline: none; transition: border-color 0.2s;
}
.form-input:focus { border-color: #1565c0; box-shadow: 0 0 0 3px rgba(21,101,192,0.1); }
.strength-wrap  { margin-top: 8px; }
.strength-bar   { height: 4px; border-radius: 2px; background: #e5e7eb; overflow: hidden; }
.strength-fill  { height: 100%; border-radius: 2px; transition: width 0.3s, background 0.3s; width: 0%; }
.strength-label { font-size: 12px; color: #9ca3af; margin-top: 5px; min-height: 18px; }
.btn-submit {
    width: 100%; padding: 12px;
    background: linear-gradient(135deg, #0f4c81, #1565c0);
    color: #fff; border: none; border-radius: 8px;
    font-family: 'Sarabun', sans-serif; font-size: 15px; font-weight: 600;
    cursor: pointer; transition: opacity 0.2s;
}
.btn-submit:hover { opacity: 0.9; }
.back-link {
    display: block; text-align: center; margin-top: 20px;
    font-size: 14px; color: #6b7280; text-decoration: none;
}
.back-link:hover { color: #1565c0; text-decoration: underline; }

/* Honeypot — ซ่อนจากคนทั่วไปแต่บอทยังเห็น/กรอกได้ (ไม่ใช้ display:none ตรงๆ เพราะบอทบางตัว
   อ่าน CSS แล้วข้ามช่องนั้น — ใช้ absolute position ย้ายออกนอกจอแทน) */
.hp-field {
    position: absolute; left: -9999px; top: -9999px;
    width: 1px; height: 1px; overflow: hidden;
}
