/* ============================================================
   FRESHTIQ PORTAL — PREMIUM UI LAYER (2026-10-12)
   Additive to /customer.css. Brand: navy #071C2C · surface #102F3C
   · teal #12D9C4 · off-white #F4F7F9.
   Fixes: excessive white spacing, typography/brand consistency,
   button sizing, responsive, auth polish, back/close affordances.
   No logic changes. Loaded after customer.css.
   ============================================================ */

:root{
  --ftq-navy:#071C2C;
  --ftq-navy2:#102F3C;
  --ftq-teal:#12D9C4;
  --ftq-teal-ink:#04262b;
  --ftq-off:#F4F7F9;
  --ftq-line:#DCE6EC;
  --ftq-ink:#0B1F2A;
  --ftq-mut:#54646F;
  /* tighten the type scale / rhythm */
  --fs-hero:1.6rem;
  --fs-h1:1.32rem;
  --fs-h2:1.12rem;
  --fs-h3:.98rem;
}

/* ---------- Rhythm: kill excessive white space ---------- */
html{-webkit-text-size-adjust:100%}
body{background:var(--ftq-off)}
.app-main{max-width:1180px;padding:1rem 1.1rem 2.4rem}
.card{padding:1.05rem 1.15rem;margin-bottom:.75rem;border-color:var(--ftq-line)}
.card-title{margin-bottom:.7rem}
.metrics{gap:.7rem;margin-bottom:.85rem}
.metric{padding:.85rem .95rem}
.metric .m-value{font-size:1.3rem}
.welcome-banner{padding:1.15rem 1.25rem;margin-bottom:.9rem;
  background:linear-gradient(140deg,#071C2C 0%,#0E2A3A 62%,#102F3C 130%)}
.welcome-banner h1{font-size:1.35rem;margin-bottom:.2rem}
.welcome-banner p{font-size:.9rem;color:#C7D8E2}
.section-title{margin:.15rem 0 .7rem;font-size:1.12rem}
.tabs{gap:.3rem;margin-bottom:.85rem;padding-bottom:.45rem}

/* ---------- Buttons: uniform ---------- */
.btn{border-radius:12px;font-weight:700}
.btn-primary{background:var(--ftq-teal);color:var(--ftq-teal-ink);box-shadow:0 2px 10px rgba(18,217,196,.28)}
.btn-primary:hover{background:#0FC9B6}
.btn-primary:disabled{background:#9FE9E0}
.btn-accent{background:linear-gradient(135deg,#12D9C4,#0E8F83);color:#04262b}
.btn:focus-visible,.tab:focus-visible,.mnav-item:focus-visible,a:focus-visible,
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{
  outline:3px solid rgba(18,217,196,.55)!important;outline-offset:2px!important}

/* ---------- Auth: premium centered card ---------- */
.auth-wrap{background:
  radial-gradient(circle at 85% 8%,rgba(18,217,196,.16),transparent 42%),
  linear-gradient(160deg,#071C2C 0%,#0B2634 58%,#102F3C 130%)}
.auth-card{max-width:440px;border:1px solid rgba(18,217,196,.18);border-radius:18px;padding:1.7rem 1.5rem}
.auth-logo .logo-badge{background:linear-gradient(135deg,#12D9C4,#0E8F83);color:#04262b}
.auth-title{font-size:1.35rem}
.auth-sub{margin-bottom:1.1rem}
.auth-msg{text-align:left;font-weight:600}
.auth-msg.err{color:#B42318}
.auth-msg.ok{color:#0A6E63}
.field{margin-bottom:.75rem}
.field label{font-size:.85rem}
.field .hint{font-size:.78rem}
input[type=text],input[type=tel],input[type=email],input[type=password],select,textarea{
  min-height:46px;border-radius:11px;border-color:var(--ftq-line)}
input:focus,select:focus,textarea:focus{border-color:var(--ftq-teal);box-shadow:0 0 0 3px rgba(18,217,196,.2)}
.field.invalid input,.field.invalid select{border-color:#DC2626;background:#FFF7F7}
.field-error{display:none;color:#B42318;font-size:.78rem;font-weight:600;margin-top:.3rem}
.field.invalid .field-error{display:block}

/* Phone row: country code + number */
.phone-row{display:flex;gap:.5rem;align-items:stretch}
.phone-row select.cc-select{flex:0 0 auto;width:auto;min-width:104px;max-width:130px;padding-right:1.6rem}
.phone-row input{flex:1 1 auto;min-width:0}

/* Password with visibility toggle */
.pw-wrap{position:relative;display:flex}
.pw-wrap input{flex:1;padding-right:3rem}
.pw-toggle{
  position:absolute;right:.35rem;top:50%;transform:translateY(-50%);
  min-height:36px;min-width:40px;height:36px;padding:0 .5rem;border:0;border-radius:9px;
  background:transparent;color:#54646F;font-size:.78rem;font-weight:800;cursor:pointer}
.pw-toggle:hover{background:var(--ftq-off);color:var(--ftq-ink)}

/* Back to website */
.portal-back{display:inline-flex;align-items:center;gap:.4rem;min-height:40px;
  margin:0 0 .6rem;font-size:.85rem;font-weight:700;color:var(--ftq-mut);text-decoration:none}
.portal-back:hover{color:#0E8F83;text-decoration:none}
.topbar .portal-back{color:#9FB6C2}
.topbar .portal-back:hover{color:#12D9C4}

/* Dialogs / overlays: guarantee a visible close affordance */
.more-sheet-close{min-width:40px;min-height:40px;border-radius:10px;font-size:1.05rem}

/* ---------- SE dashboard (dark) brand alignment ---------- */
body.se-dark{background:radial-gradient(circle at 100% 0,rgba(18,217,196,.16),transparent 48%),#071C2C}
body.se-dark .panel{background:linear-gradient(160deg,#102F3C,#0B2634);border-color:#28505F}
body.se-dark .stat{background:#0E2836;border-color:#28505F}
body.se-dark .stat .value,body.se-dark .brand span{color:#12D9C4}
body.se-dark button{background:linear-gradient(105deg,#12D9C4,#0FC9B6);color:#04262b}
body.se-dark .notice{border-color:#2E6B6B;color:#BFF5EC}
body.se-dark .item{background:#0B2231;border-color:#2A5163}

/* ---------- Responsive ---------- */
@media (max-width:760px){
  .app-main{padding:.8rem .75rem 5.4rem}
  .welcome-banner{padding:1rem}
  .metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem}
  .metric{padding:.7rem .8rem}
  .card{padding:.9rem .9rem;border-radius:14px}
  .auth-wrap{padding:.8rem}
  .auth-card{padding:1.35rem 1.15rem}
  .phone-row select.cc-select{min-width:92px;max-width:108px}
}
@media (max-width:360px){
  .phone-row select.cc-select{min-width:82px;max-width:96px;font-size:.82rem}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
