/*
 * Login page - same language as the dashboard: white base, brand yellow navigation colour, brand blue actions, charcoal text.
 * Brand colours (from the logo): blue #259DD8, yellow #F4C01B, gold #C4932C, grey #606161.
 */
:root{
  --blue:#259DD8; --blue-d:#1b86ba; --yellow:#F4C01B; --gold:#C4932C; --grey:#606161;
  --ink:#2b2d2f; --muted:#8a8f98; --line:#e3e6ea; --danger:#d92d3a;
}
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;font-family:'Montserrat',Arial,Helvetica,sans-serif;color:var(--ink);background:#fff;-webkit-font-smoothing:antialiased}

.auth{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);min-height:100vh}

/* ---------- brand side ---------- */
.brand{position:relative;overflow:hidden;background:var(--yellow);color:#14140f;display:flex;flex-direction:column;justify-content:space-between;padding:44px 56px}
.brand-shape{position:absolute;border-radius:50%;pointer-events:none}
.brand-shape.s1{width:520px;height:520px;right:-170px;top:-150px;background:rgba(255,255,255,.22)}
.brand-shape.s2{width:340px;height:340px;left:-120px;bottom:-110px;background:rgba(20,20,15,.07)}
.brand-shape.s3{width:150px;height:150px;right:90px;bottom:130px;border:2px solid rgba(20,20,15,.18);background:transparent}
.brand::before{content:"";position:absolute;inset:0;background-image:radial-gradient(rgba(20,20,15,.09) 1.2px,transparent 1.2px);background-size:26px 26px;-webkit-mask-image:linear-gradient(135deg,transparent 30%,#000 100%);mask-image:linear-gradient(135deg,transparent 30%,#000 100%);pointer-events:none}
.brand>*{position:relative;z-index:1}
.brand-tag{display:inline-block;font-size:12px;font-weight:600;letter-spacing:2.4px;text-transform:uppercase;padding:8px 16px;border:1.5px solid rgba(20,20,15,.55);border-radius:30px}
.brand-body{max-width:520px}
.brand-body h2{margin:0 0 16px;font-size:clamp(30px,3.4vw,46px);line-height:1.15;font-weight:700;letter-spacing:-.5px}
.brand-body p{margin:0 0 34px;font-size:16px;line-height:1.7;max-width:440px;color:rgba(20,20,15,.82)}
.features{list-style:none;margin:0;padding:0;display:grid;gap:16px}
.features li{display:flex;align-items:center;gap:16px}
.features .ico{flex:0 0 46px;height:46px;border-radius:14px;background:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 6px 16px rgba(20,20,15,.12)}
.features .ico svg{width:22px;height:22px;fill:none;stroke:#14140f;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.features b{display:block;font-size:15px;font-weight:600}
.features small{display:block;font-size:13px;color:rgba(20,20,15,.72);margin-top:2px}
.brand-foot{font-size:12px;color:rgba(20,20,15,.7)}

/* ---------- form side ---------- */
.panel{display:flex;align-items:center;justify-content:center;padding:40px 28px;background:#fff}
.panel-inner{width:100%;max-width:410px}
.logo-link{display:inline-block;margin-bottom:38px}
.logo{height:34px;width:auto;display:block}
h1{margin:0 0 8px;font-size:30px;font-weight:700;letter-spacing:-.4px}
.lead{margin:0 0 28px;color:var(--grey);font-size:15px}

.alert{display:flex;align-items:flex-start;gap:10px;padding:12px 14px;border-radius:10px;font-size:13px;line-height:1.5;margin:0 0 20px;border:1px solid}
.alert svg{flex:0 0 18px;width:18px;height:18px;margin-top:1px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.alert-err{background:#fdecee;border-color:#f6c9cd;color:#b3202d}
.alert-info{background:#e8f4fb;border-color:#c5e3f4;color:#17719c}

.field{margin-bottom:20px}
label{display:block;font-size:12.5px;font-weight:600;color:var(--grey);margin:0 0 8px}
input[type=text],input[type=password]{width:100%;height:50px;padding:0 16px;font:inherit;font-size:14.5px;color:var(--ink);background:#fff;border:1.5px solid var(--line);border-radius:12px;outline:none;transition:border-color .15s,box-shadow .15s}
input::placeholder{color:#b2b7bf}
input:hover{border-color:#cfd4da}
input:focus{border-color:var(--blue);box-shadow:0 0 0 4px rgba(37,157,216,.14)}
.pw{position:relative}
.pw input{padding-right:50px}
.pw-toggle{position:absolute;right:6px;top:6px;width:38px;height:38px;border:0;background:transparent;border-radius:8px;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--muted)}
.pw-toggle:hover{background:#f3f5f7;color:var(--ink)}
.pw-toggle svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.pw-toggle .eye-off{display:none}
.pw-toggle.on .eye{display:none}
.pw-toggle.on .eye-off{display:block}
.forgot{display:inline-block;margin-top:10px;font-size:12.5px;font-weight:500;color:var(--blue);text-decoration:none}
.forgot:hover{color:var(--blue-d);text-decoration:underline}

.btn-login{width:100%;height:52px;margin-top:6px;border:0;border-radius:12px;background:var(--blue);color:#fff;font:inherit;font-size:15px;font-weight:600;letter-spacing:.3px;cursor:pointer;box-shadow:0 8px 20px rgba(37,157,216,.32);transition:background .15s,transform .1s,box-shadow .15s}
.btn-login:hover{background:var(--blue-d);box-shadow:0 10px 24px rgba(37,157,216,.4)}
.btn-login:active{transform:translateY(1px)}
.btn-login:focus-visible{outline:3px solid rgba(37,157,216,.35);outline-offset:2px}
.btn-login.busy{opacity:.75;cursor:default}

.signup{margin:26px 0 0;text-align:center;font-size:13.5px;color:var(--grey)}
.signup a{color:var(--blue);font-weight:600;text-decoration:none}
.signup a:hover{text-decoration:underline}

/* ---------- smaller screens ---------- */
@media (max-width:960px){
  .auth{grid-template-columns:1fr}
  .brand{padding:28px 28px 30px}
  .brand-body{max-width:none}
  .brand-body h2{font-size:26px;margin-bottom:10px}
  .brand-body p{margin-bottom:0;font-size:14px}
  .features,.brand-foot{display:none}
  .brand-shape.s1{width:300px;height:300px;right:-110px;top:-120px}
  .brand-shape.s2,.brand-shape.s3{display:none}
  .brand-top{margin-bottom:18px}
  .panel{align-items:flex-start;padding:30px 24px 50px}
}
@media (max-width:420px){
  .logo-link{margin-bottom:26px}
  h1{font-size:26px}
}

/* ---------- shared with reset-password.php ---------- */
.btn-login{display:flex;align-items:center;justify-content:center}
.field.otp_div,.field.password_div{flex-direction:column}          /* the page script switches these to display:flex */
.mes_pp{padding:12px 14px;border-radius:10px;background:#e8f4fb;border:1px solid #c5e3f4;color:#17719c;font-size:13px;line-height:1.6;margin:0 0 20px}
.mes_pp:empty{display:none}
.error_pp{padding:11px 14px;border-radius:10px;background:#fdecee;border:1px solid #f6c9cd;color:#b3202d;font-size:13px;font-weight:600;line-height:1.5;margin:0 0 16px}
.error_pp:empty{display:none}
.error_pp.is-ok{background:#e6f6ec;border-color:#bfe6cd;color:#12804a}
.steps{display:flex;gap:8px;margin:0 0 26px}
.step{flex:1;display:flex;align-items:center;gap:8px;font-size:12px;font-weight:600;color:var(--muted);padding-top:12px;border-top:3px solid var(--line);transition:color .2s,border-color .2s}
.step i{font-style:normal;width:22px;height:22px;border-radius:50%;background:#eef0f3;color:var(--muted);display:inline-flex;align-items:center;justify-content:center;font-size:11px}
.step.active{color:var(--ink);border-top-color:var(--blue)}
.step.active i{background:var(--blue);color:#fff}
.step.done{color:var(--grey);border-top-color:var(--yellow)}
.step.done i{background:var(--yellow);color:#14140f}
.features .ico.num{font-weight:700;font-size:17px;color:#14140f}
.back{margin:24px 0 0;text-align:center;font-size:13.5px;color:var(--grey)}
.back a{color:var(--blue);font-weight:600;text-decoration:none}
.back a:hover{text-decoration:underline}
