/*==========================================================
FILE : auth/css/auth.css
VERSION : V1 — Shared styles for all authentication pages
STATUS : Production Ready
==========================================================*/
:root{
--primary:#18B64A;
--primary-dark:#13963D;
--primary-light:#ECFDF3;
--secondary:#22C55E;
--white:#FFFFFF;
--bg:#F5F8FB;
--border:#E7EDF4;
--text:#1E293B;
--text-light:#64748B;
--shadow:0 20px 45px rgba(15,23,42,.08);
--radius:24px;
}
*{ box-sizing:border-box; }
body{ margin:0; padding:0; font-family:'Poppins',sans-serif; background:var(--bg); color:var(--text); overflow-x:hidden; }

.auth-page{ display:flex; min-height:100vh; }

/*==========================================
LEFT BRAND PANEL
==========================================*/
.auth-left{
flex:1; background:linear-gradient(160deg,#13963D,#18B64A 55%,#22C55E);
display:flex; flex-direction:column; justify-content:space-between;
padding:50px 55px; position:relative; overflow:hidden; color:#fff; min-width:0;
}
.auth-left::before{
content:""; position:absolute; top:-100px; right:-100px; width:320px; height:320px;
border-radius:50%; background:rgba(255,255,255,.08);
}
.auth-left::after{
content:""; position:absolute; bottom:-140px; left:-80px; width:360px; height:360px;
border-radius:50%; background:rgba(255,255,255,.06);
}
.auth-brand{ display:flex; align-items:center; gap:12px; position:relative; z-index:1; }
.auth-brand img{ height:42px; }
.auth-brand span{ font-size:20px; font-weight:800; }
.auth-hero{ position:relative; z-index:1; max-width:420px; }
.auth-hero h1{ font-size:34px; font-weight:800; line-height:1.3; margin:0 0 16px; }
.auth-hero p{ font-size:15px; opacity:.9; line-height:1.7; margin:0; }
.auth-hero-points{ margin-top:26px; display:flex; flex-direction:column; gap:14px; }
.auth-hero-points div{ display:flex; align-items:center; gap:12px; font-size:14px; font-weight:600; }
.auth-hero-points i{
width:32px; height:32px; border-radius:10px; background:rgba(255,255,255,.15);
display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.auth-left-footer{ position:relative; z-index:1; font-size:12px; opacity:.75; }

/*==========================================
RIGHT FORM PANEL
==========================================*/
.auth-right{
flex:1; display:flex; align-items:center; justify-content:center; padding:40px 30px; min-width:0;
}
.auth-card{ width:100%; max-width:420px; }
.auth-card-mobile-logo{ display:none; align-items:center; gap:10px; margin-bottom:26px; }
.auth-card-mobile-logo img{ height:34px; }
.auth-card-mobile-logo span{ font-size:17px; font-weight:800; color:var(--primary-dark); }
.auth-card h2{ font-size:26px; font-weight:800; margin:0 0 6px; }
.auth-card .auth-sub{ font-size:14px; color:var(--text-light); margin:0 0 28px; line-height:1.6; }
.auth-card .auth-sub a,.auth-switch a{ color:var(--primary-dark); font-weight:700; text-decoration:none; }
.auth-card .auth-sub a:hover,.auth-switch a:hover{ text-decoration:underline; }

/*==========================================
FORM ELEMENTS
==========================================*/
.input-group{ margin-bottom:16px; }
.input-group label{ display:block; font-size:13px; font-weight:700; margin-bottom:8px; }
.input-wrap{ position:relative; }
.input-wrap i.left-icon{
position:absolute; left:16px; top:50%; transform:translateY(-50%); color:var(--text-light); font-size:14px;
}
.input-wrap input,.input-wrap select{
width:100%; padding:14px 16px 14px 42px; border:1.5px solid var(--border); border-radius:14px;
font-size:14px; font-family:'Poppins',sans-serif; background:#fff; color:var(--text);
}
.input-wrap select{ padding-left:16px; }
.input-wrap input:focus,.input-wrap select:focus{ outline:none; border-color:var(--primary); }
.input-wrap input.has-toggle{ padding-right:44px; }
.toggle-password{
position:absolute; right:14px; top:50%; transform:translateY(-50%); background:none; border:none;
color:var(--text-light); cursor:pointer; font-size:14px;
}
.field-error{ font-size:12px; color:#DC2626; margin-top:6px; display:none; }
.field-error.show{ display:block; }
.field-hint{ font-size:11px; color:var(--text-light); margin-top:6px; }

/*==========================================
PASSWORD STRENGTH
==========================================*/
.strength-meter{ display:flex; gap:5px; margin-top:10px; }
.strength-meter div{ height:5px; flex:1; border-radius:6px; background:var(--border); transition:.25s; }
.strength-label{ font-size:11px; margin-top:6px; font-weight:700; color:var(--text-light); }
.strength-weak .strength-meter div:nth-child(1){ background:#DC2626; }
.strength-weak .strength-label{ color:#DC2626; }
.strength-fair .strength-meter div:nth-child(1),.strength-fair .strength-meter div:nth-child(2){ background:#F59E0B; }
.strength-fair .strength-label{ color:#B45309; }
.strength-good .strength-meter div:nth-child(1),.strength-good .strength-meter div:nth-child(2),.strength-good .strength-meter div:nth-child(3){ background:#22C55E; }
.strength-good .strength-label{ color:#13963D; }
.strength-strong .strength-meter div{ background:var(--primary); }
.strength-strong .strength-label{ color:var(--primary-dark); }

/*==========================================
CHECKBOX / ROW
==========================================*/
.form-row-between{ display:flex; align-items:center; justify-content:space-between; margin-bottom:22px; flex-wrap:wrap; gap:10px; }
.checkbox-row{ display:flex; align-items:flex-start; gap:9px; font-size:13px; color:var(--text-light); }
.checkbox-row input{ margin-top:3px; accent-color:var(--primary); width:16px; height:16px; flex-shrink:0; }
.checkbox-row a{ color:var(--primary-dark); font-weight:700; text-decoration:none; }
.checkbox-row a:hover{ text-decoration:underline; }
.forgot-link{ font-size:13px; color:var(--primary-dark); font-weight:700; text-decoration:none; }
.forgot-link:hover{ text-decoration:underline; }

/*==========================================
BUTTONS
==========================================*/
.btn-auth-primary{
width:100%; background:var(--primary); color:#fff; border:none; padding:15px; border-radius:14px;
font-size:15px; font-weight:700; cursor:pointer; display:flex; align-items:center; justify-content:center; gap:10px;
transition:.25s;
}
.btn-auth-primary:hover{ background:var(--primary-dark); }
.btn-auth-primary:disabled{ opacity:.6; cursor:not-allowed; }
.btn-auth-outline{
width:100%; background:#fff; color:var(--text); border:1.5px solid var(--border); padding:14px; border-radius:14px;
font-size:14px; font-weight:700; cursor:pointer; display:flex; align-items:center; justify-content:center; gap:10px; margin-bottom:10px;
}
.btn-auth-outline:hover{ border-color:var(--primary); color:var(--primary-dark); }
.btn-auth-outline img{ height:18px; }

.divider-row{ display:flex; align-items:center; gap:14px; margin:22px 0; }
.divider-row::before,.divider-row::after{ content:""; flex:1; height:1px; background:var(--border); }
.divider-row span{ font-size:12px; color:var(--text-light); font-weight:600; }

.auth-switch{ text-align:center; font-size:13px; color:var(--text-light); margin-top:22px; }

/*==========================================
ALERTS
==========================================*/
.auth-alert{
padding:13px 16px; border-radius:14px; font-size:13px; margin-bottom:18px; display:none; align-items:flex-start; gap:10px;
}
.auth-alert.show{ display:flex; }
.auth-alert.error{ background:#FEF2F2; color:#DC2626; }
.auth-alert.success{ background:#ECFDF3; color:#13963D; }
.auth-alert.info{ background:#EFF6FF; color:#2563EB; }
.auth-alert.warning{ background:#FFFBEB; color:#B45309; }
.auth-alert i{ margin-top:2px; }
.auth-alert .demo-code{ font-weight:800; letter-spacing:2px; font-size:16px; }

/*==========================================
OTP INPUT
==========================================*/
.otp-inputs{ display:flex; gap:10px; justify-content:center; margin:24px 0 8px; }
.otp-inputs input{
width:48px; height:56px; text-align:center; font-size:22px; font-weight:800; border:1.5px solid var(--border);
border-radius:14px; font-family:'Poppins',sans-serif;
}
.otp-inputs input:focus{ outline:none; border-color:var(--primary); }
.otp-resend{ text-align:center; font-size:13px; color:var(--text-light); margin-top:16px; }
.otp-resend button{ background:none; border:none; color:var(--primary-dark); font-weight:700; cursor:pointer; font-size:13px; }
.otp-resend button:disabled{ color:var(--text-light); cursor:not-allowed; }

/*==========================================
STATUS PAGES (Pending / Blocked / Expired)
==========================================*/
.status-page-icon{
width:88px; height:88px; border-radius:50%; display:flex; align-items:center; justify-content:center;
font-size:36px; margin:0 auto 22px;
}
.status-page-icon.warn{ background:#FFFBEB; color:#B45309; }
.status-page-icon.danger{ background:#FEF2F2; color:#DC2626; }
.status-page-icon.info{ background:#EFF6FF; color:#2563EB; }
.auth-card.centered{ text-align:center; }
.status-meta-box{
background:var(--bg); border-radius:14px; padding:16px 18px; margin:18px 0; text-align:left; font-size:13px;
}
.status-meta-box div{ display:flex; justify-content:space-between; padding:6px 0; }
.status-meta-box span{ color:var(--text-light); }
.status-meta-box strong{ font-weight:700; }

/*==========================================
LOADING SPINNER
==========================================*/
.btn-spinner{
width:16px; height:16px; border:2.5px solid rgba(255,255,255,.4); border-top-color:#fff; border-radius:50%;
animation:spin .7s linear infinite; display:none;
}
.btn-spinner.show{ display:inline-block; }
@keyframes spin{ to{ transform:rotate(360deg); } }

/*==========================================
TOAST
==========================================*/
.toast{
position:fixed; bottom:30px; left:50%; transform:translateX(-50%) translateY(20px); background:#1E293B; color:#fff;
padding:14px 26px; border-radius:14px; font-size:14px; font-weight:600; box-shadow:0 20px 40px rgba(0,0,0,.25);
z-index:1200; opacity:0; transition:.35s; pointer-events:none;
}
.toast.show{ opacity:1; transform:translateX(-50%) translateY(0); }

/*==========================================
RESPONSIVE
==========================================*/
@media(max-width:992px){
.auth-left{ display:none; }
.auth-card-mobile-logo{ display:flex; }
.auth-right{ padding:30px 22px; }
}
@media(max-width:480px){
.otp-inputs input{ width:40px; height:50px; font-size:18px; }
.auth-card h2{ font-size:22px; }
}
