/* login.css — login page layout: glass two-column panel, brand/services hero,
   and the auth card. Blue/white palette from style.css. CSP-safe (no inline). */
   .otp-timer{ margin-top:8px; font-size:.85rem; font-weight:700; color:var(--blue-700); }
.otp-timer.expired{ color:var(--danger); }
  .captcha-row {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
        }
        .volume-container {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: rgba(0, 0, 0, 0.04);
            padding: 4px 8px;
            border-radius: 6px;
            border: 1px solid rgba(0, 0, 0, 0.1);
              display: none;
        }
        .volume-btn {
            background: transparent;
            border: none;
            cursor: pointer;
            padding: 4px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: currentColor;
            border-radius: 4px;
        }
        .volume-btn:hover {
            background: rgba(0, 0, 0, 0.08);
        }
        .volume-slider {
            width: 65px;
            height: 4px;
            cursor: pointer;
            accent-color: #0056b3;
        }
 
.login-body{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:space-evenly;
  padding:24px;
}
 
.portal{
  width:100%;
  max-width:1080px;
  position:relative;
  z-index:1;
  display:flex;
  justify-content:center;
}
 
.portal-panel{
  width:100%;
  min-height:600px;          /* stable height: OTP reveal no longer leaves a gap */
  display:flex;
  background:rgba(255,255,255,.78);
  align-items:stretch;
  -webkit-backdrop-filter:blur(22px) saturate(1.4);
          backdrop-filter:blur(22px) saturate(1.4);
  border:1px solid rgba(255,255,255,.85);
  border-radius:var(--radius-xl);
  box-shadow:var(--shadow-xl);
  overflow:hidden;
  animation:panelIn .6s cubic-bezier(.22,1,.36,1) both;
}
 
@keyframes panelIn{from{opacity:0;transform:translateY(24px) scale(.98);}to{opacity:1;transform:none;}}
 
/* ---------------- LEFT HERO ---------------- */
.hero{
  position:relative;
  flex:1 1 53%;
  color:#eaf2ff;
  padding:34px 34px 28px;
  display:flex;
  flex-direction:column;
  justify-content:center;     /* keep content grouped + centred at any height */
  gap:18px;
  background:
    radial-gradient(ellipse 70% 50% at 20% 8%, rgba(21,101,216,.45), transparent 55%),
    radial-gradient(ellipse 60% 45% at 90% 95%, rgba(15,91,196,.40), transparent 55%),
    linear-gradient(160deg,#0a2c5e 0%,#0b3a78 45%,#0b4aa2 100%);
}
.hero::before{
  content:'';
  position:absolute;inset:0;pointer-events:none;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size:34px 34px;
  -webkit-mask-image:radial-gradient(ellipse 75% 60% at 40% 30%, #000 20%, transparent 80%);
          mask-image:radial-gradient(ellipse 75% 60% at 40% 30%, #000 20%, transparent 80%);
}
.hero>*{position:relative;z-index:1;}
 
.hero-brand{display:flex;align-items:center;gap:12px;margin-bottom:26px;}
.hero-logo{height:42px;width:auto;max-width:170px;object-fit:contain;display:block;background:#fff;border-radius:10px;padding:4px;}
.hero-brand-text{display:flex;flex-direction:column;line-height:1.1;}
.hero-brand-text .kicker{font-size:0.75rem;letter-spacing:2px;color:#9fc2f3;font-weight:700;}
.hero-brand-text .name{font-size:0.9375rem;font-weight:600;color:#fff;}
 
.hero-headline{font-size:1.875rem;line-height:1.2;font-weight:800;margin:0 0 10px;color:#fff;letter-spacing:-.3px;}
.hero-sub{font-size:0.875rem;color:#c6d8f3;margin:0;max-width:38ch;}
 
.hero-services{margin-top:24px;}
.hero-services-head{
  display:flex;align-items:center;justify-content:space-between;
  font-size:0.75rem;font-weight:700;letter-spacing:.6px;text-transform:uppercase;
  color:#9fc2f3;margin-bottom:12px;
}
.hero-badge{
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.22);
  color:#eaf2ff;border-radius:999px;padding:3px 10px;font-size:0.6875rem;letter-spacing:.3px;
}
.svc-list{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px;}
.svc-chip{
  flex:1 1 calc(50% - 5px);
  min-width:150px;
  display:flex;align-items:center;gap:9px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.14);
  border-radius:12px;padding:9px 10px;
  transition:var(--speed);
}
.svc-chip:hover{background:rgba(255,255,255,.16);transform:translateY(-1px);}
.svc-ic{
  flex:none;width:30px;height:30px;border-radius:8px;
  display:flex;align-items:center;justify-content:center;
  background:rgba(255,255,255,.16);color:#e7f0ff;
}
.svc-ic svg{width:17px;height:17px;}
.svc-name{font-size:0.7812rem;font-weight:600;color:#eaf2ff;line-height:1.2;}
.hero-foot{margin:16px 0 0;font-size:0.75rem;color:#9fc2f3;}
 
/* ---------------- RIGHT AUTH CARD ---------------- */
.auth-card{
  background:var(--white);
  padding:40px 38px;
  flex:1 1 47%;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.auth-title{margin:0 0 4px;font-size:1.5rem;color:var(--blue-900);font-weight:800;}
.auth-sub{margin:0 0 22px;color:var(--muted);font-size:0.875rem;}
 
.seg{display:flex;background:var(--blue-100);border-radius:12px;padding:4px;margin-bottom:22px;}
.seg-btn{
  flex:1;border:0;background:transparent;padding:11px;border-radius:9px;cursor:pointer;
  font-size:0.875rem;font-weight:600;color:var(--blue-700);transition:var(--speed);
}
.seg-btn.is-active{background:var(--white);color:var(--blue-900);box-shadow:0 2px 8px rgba(10,44,94,.14);}
 
.captcha-row{display:flex;align-items:center;gap:10px;margin-bottom:10px;flex-wrap:wrap;}
.audio-btn{
  width:46px;height:46px;border:1px solid var(--line);border-radius:9px;background:#fff;
  cursor:pointer;color:var(--blue-700);display:flex;align-items:center;justify-content:center;transition:var(--speed);display:none;
}
.audio-btn:hover{background:var(--blue-100);}
.audio-btn svg{width:20px;height:20px;}
[data-theme="dark"] .audio-btn{background:#0f1726;border-color:var(--line);}
.captcha-img{height:46px;border:1px solid var(--line);border-radius:9px;background:#fff;}
.icon-btn{
  width:46px;height:46px;border:1px solid var(--line);border-radius:9px;background:#fff;
  font-size:1.125rem;cursor:pointer;color:var(--blue-700);line-height:1;transition:var(--speed);
}
.icon-btn:hover{background:var(--blue-100);}
.icon-btn:disabled{color:var(--muted);cursor:not-allowed;}
 
.otp-section{margin-top:18px;padding-top:18px;border-top:1px dashed var(--line);}
.otp-boxes{display:flex;gap:10px;justify-content:space-between;margin-top:6px;}
.otp-digit{
  flex:1 1 0;width:100%;max-width:58px;aspect-ratio:1/1;
  text-align:center;font-size:1.375rem;font-weight:700;
  border:1px solid var(--line);border-radius:12px;background:var(--input-bg,#fcfdff);
  color:var(--ink);outline:none;transition:var(--speed);
  -moz-appearance:textfield;
}
.otp-digit::-webkit-outer-spin-button,
.otp-digit::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}
.otp-digit:focus{border-color:var(--blue-500);box-shadow:0 0 0 3px rgba(21,101,216,.18);}
.otp-digit.filled{border-color:var(--blue-500);}
[data-theme="dark"] .otp-digit{background:#0f1726;border-color:var(--line);}
.form-msg{margin:14px 0 0;font-size:0.8125rem;min-height:18px;}
.form-msg.error{color:var(--danger);}
.form-msg.ok{color:var(--ok);}
 
.auth-secure{
  display:flex;align-items:center;gap:8px;
  margin:22px 0 0;font-size:0.75rem;color:var(--muted);
}
.lock-dot{width:8px;height:8px;border-radius:50%;background:var(--ok);box-shadow:0 0 0 3px rgba(30,126,68,.15);}
 
/* Tablet / narrow desktop: stack the two panels early enough to stay readable */
@media (max-width: 980px){
  .portal{ max-width: 640px; }
  .portal-panel{ flex-direction: column; min-height: auto; }
  .hero, .auth-card{ flex: 1 1 auto; }
  .svc-list{ flex-wrap: wrap; }
  .svc-chip{ flex: 1 1 calc(50% - 5px); }
}

@media (max-width: 860px){
  .login-body{ padding: 16px; justify-content: flex-start; }
  .portal-panel{ max-width: 520px; margin: 0 auto; }
  .hero{ padding: 26px 26px 22px; }
  .hero-headline{ font-size: 1.5rem; }
  .auth-card{ padding: 30px 26px; }
}

/* Phones */
@media (max-width: 560px){
  .login-body{ padding: 12px; }
  .hero{ padding: 22px 20px 18px; gap: 12px; }
  .hero-brand{ margin-bottom: 6px; }
  .hero-logo{ height: 46px; max-width: 190px; }
  .hero-headline{ font-size: 1.35rem; margin-bottom: 4px; }
  .hero-sub{ font-size: .875rem; max-width: none; }
  .hero-services{ margin-top: 14px; }
  .hero-services-head{ font-size: .7rem; }
  .svc-list{ gap: 8px; }
  .svc-chip{ flex: 1 1 100%; padding: 12px; }
  .svc-name{ font-size: .9rem; }

  .auth-card{ padding: 24px 18px; }
  .auth-title{ font-size: 1.3rem; }
  .seg-btn{ padding: 12px 8px; }

  .captcha-row{ gap: 8px; }
  .captcha-img{ height: 46px; flex: 1 1 auto; min-width: 0; }
  .icon-btn{ width: 46px; height: 46px; flex: none; }

  .otp-boxes{ gap: 8px; }
  .otp-digit{ max-width: none; font-size: 1.25rem; }
}

/* Small phones */
@media (max-width: 380px){
  .auth-card{ padding: 20px 14px; }
  .otp-boxes{ gap: 6px; }
  .otp-digit{ font-size: 1.1rem; }
  .seg-btn{ font-size: .8rem; }
}

/* Short screens (landscape phones, small laptops): let it scroll, do not squash */
@media (max-height: 720px){
  .login-body{ justify-content: flex-start; }
  .portal-panel{ min-height: auto; }
}



/* --- visibility polish (all screens) --- */
.field input{ min-height: 46px; }
.auth-card .btn-primary{ padding: 14px; font-size: 1rem; }
.otp-digit{ min-height: 52px; }
.svc-chip{ min-width: 0; } /* stops chips overflowing on tiny widths */
.hero-headline{ letter-spacing: -.2px; }
.a11y-bar,
.otp-fieldset {
    border: 0;
    margin: 0;
    padding: 0;
    min-inline-size: 0;
}

.otp-legend {
    padding: 0;
    float: none;
    width: auto;
}

.form-msg { display: block; }
