/**
 * ============================================================
 * ไฟล์  : login-histopath.css
 * ระบบ  : Histopath (ระบบย่อย PathoBio)
 * ตำแหน่ง: histopath/assets/css/login-histopath.css
 * ============================================================
 * หน้าที่: Styles สำหรับหน้า login.php (standalone)
 *
 * การเปลี่ยนแปลงจากเวอร์ชันก่อน:
 *   - ย้ายมาจาก <style nonce> ใน PHP files (CSP-safe)
 * ============================================================
 */

/* === from login.php === */
*{margin:0;padding:0;box-sizing:border-box}
body{font-family:'Sarabun',sans-serif;background:linear-gradient(135deg,#0f766e,#0d9488);
     min-height:100vh;display:flex;align-items:center;justify-content:center;padding:20px;}
.card{background:#fff;border-radius:20px;padding:48px 40px;max-width:500px;
      width:100%;text-align:center;box-shadow:0 24px 64px rgba(0,0,0,0.2);}
.logo{display:flex;align-items:center;justify-content:center;gap:10px;margin-bottom:32px;}
.logo-icon{width:44px;height:44px;background:linear-gradient(135deg,#0f766e,#14a085);
           border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:22px;}
.logo-name{font-size:22px;font-weight:700;color:#0f766e;}
.icon{font-size:56px;margin-bottom:16px;}
.badge{display:inline-flex;align-items:center;gap:6px;background:#fef3c7;
       color:#92400e;padding:6px 18px;border-radius:20px;font-size:13px;
       font-weight:600;margin-bottom:20px;}
h1{font-size:20px;font-weight:700;color:#1e3a5f;margin-bottom:10px;}
p{font-size:14px;color:#6b7280;line-height:1.7;margin-bottom:6px;}
hr{border:none;border-top:1px solid #f3f4f6;margin:20px 0;}
.contact{font-size:13px;color:#9ca3af;}
.contact a{color:#0f766e;text-decoration:none;}
.lang-switch{display:flex;justify-content:flex-end;gap:6px;margin-bottom:20px;}
.lang-btn{padding:4px 12px;border-radius:20px;font-size:12px;font-weight:600;
          text-decoration:none;border:1.5px solid #e5e7eb;color:#6b7280;}
.lang-btn.active{background:#0f766e;color:#fff;border-color:#0f766e;}

/* === from login.php === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Sarabun', sans-serif;
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 50%, #134e4a 100%);
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.login-card {
    background: #fff; border-radius: 20px;
    padding: 48px 40px; width: 100%; max-width: 420px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.2);
}
.logo { text-align: center; margin-bottom: 32px; }
.logo-icon {
    width: 64px; height: 64px; border-radius: 16px;
    background: linear-gradient(135deg, #0f766e, #0d9488);
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; margin: 0 auto 12px;
}
.logo-name { font-size: 22px; font-weight: 700; color: #0f766e; }
.logo-sub  { font-size: 12px; color: #9ca3af; margin-top: 2px; }
.sso-btn {
    width: 100%; padding: 13px;
    background: linear-gradient(135deg, #0f766e, #0d9488);
    color: #fff; border: none; border-radius: 10px;
    font-family: 'Sarabun', sans-serif;
    font-size: 15px; font-weight: 600; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    text-decoration: none; margin-bottom: 8px; transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(13,115,119,0.35);
}
.sso-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.sso-hint { font-size: 11px; color: #9ca3af; text-align: center; margin-bottom: 24px; }
.divider {
    display: flex; align-items: center;
    gap: 12px; margin: 20px 0; color: #d1d5db; font-size: 13px;
}
.divider::before, .divider::after { content: ''; flex: 1; border-top: 1px solid #e5e7eb; }
.form-field { margin-bottom: 16px; }
.form-field label {
    display: block; font-size: 13px;
    font-weight: 600; color: #374151; margin-bottom: 5px;
}
.form-field input {
    width: 100%; padding: 10px 14px;
    border: 1.5px solid #e5e7eb; border-radius: 8px;
    font-family: 'Sarabun', sans-serif; font-size: 14px;
    outline: none; transition: border-color 0.2s;
}
.form-field input:focus {
    border-color: #0f766e;
    box-shadow: 0 0 0 3px rgba(13,115,119,0.1);
}
.btn-login {
    width: 100%; padding: 13px;
    background: linear-gradient(135deg, #0f766e, #0d9488);
    color: #fff; border: none; border-radius: 10px;
    font-family: 'Sarabun', sans-serif;
    font-size: 15px; font-weight: 700; cursor: pointer; transition: all 0.2s;
}
.btn-login:hover { opacity: 0.9; transform: translateY(-1px); }
.forgot-link { text-align: right; margin-top: 8px; font-size: 12px; }
.forgot-link a { color: #0f766e; text-decoration: none; }
.error-box {
    background: #fef2f2; border: 1px solid #fecaca;
    border-radius: 8px; padding: 10px 14px;
    font-size: 13px; color: #dc2626; margin-bottom: 16px;
}
.lang-switch { text-align: center; margin-top: 20px; font-size: 12px; color: #9ca3af; }
.lang-switch a { color: #0f766e; text-decoration: none; font-weight: 500; margin: 0 4px; }

/* === Missing classes for login page === */
.login-card {
background: #fff;
border-radius: 20px;
padding: 48px 40px;
width: 100%;
max-width: 440px;
margin: 0 auto;
box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
.sso-btn {
width: 100%;
padding: 13px;
background: linear-gradient(135deg, #0f766e, #14a085);
color: #fff;
border: none;
border-radius: 10px;
font-family: 'Sarabun', sans-serif;
font-size: 15px;
font-weight: 600;
cursor: pointer;
text-decoration: none;
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
transition: all 0.2s;
}
.sso-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.sso-hint { font-size: 11px; color: #9ca3af; text-align: center; margin-top: 6px; }
.btn-login {
width: 100%;
padding: 13px;
background: linear-gradient(135deg, #0f766e, #14a085);
color: #fff;
border: none;
border-radius: 10px;
font-family: 'Sarabun', sans-serif;
font-size: 15px;
font-weight: 600;
cursor: pointer;
transition: all 0.2s;
margin-top: 4px;
}
.btn-login:hover { opacity: 0.9; transform: translateY(-1px); }
.forgot-link { text-align: right; margin-top: 8px; font-size: 12px; }
.forgot-link a { color: var(--primary); text-decoration: none; }
