/* =========================================================
   app.css — login / register / dashboard styling
   Zip ke theme (Ubuntu font, blue accent, rounded cards)
   ke saath match karta hai.
   ========================================================= */

:root{
  --pri:#2f6fed;
  --pri-dark:#1b4fc0;
  --acc:#12b886;
  --ink:#12305c;
  --muted:#6b7a90;
  --line:#e3e9f4;
}

/* ---------- flash message ---------- */
.app-flash{position:relative;z-index:99;padding:14px 0;font-family:'Ubuntu',sans-serif;font-size:15px}
.app-flash .container{display:flex;align-items:center;gap:10px}
.app-flash i{font-size:18px}
.app-flash--success{background:#e7f8f1;color:#0b6b4f;border-bottom:1px solid #b9ead9}
.app-flash--error{background:#fdecec;color:#9b1c1c;border-bottom:1px solid #f5c6c6}

/* ---------- auth section ---------- */
.auth-section{position:relative;padding:110px 0 100px;background:#f5f8fd;overflow:hidden}
.auth-bg{position:absolute;inset:0;background-size:cover;background-position:center;opacity:.16;pointer-events:none}
.auth-section .container{position:relative;z-index:2}

.auth-side{text-align:center;padding:20px 30px}
.auth-side img{max-width:88%;height:auto;margin-bottom:26px}
.auth-side h3{font-size:28px;font-weight:700;color:var(--ink);margin-bottom:12px}
.auth-side p{font-size:16px;color:var(--muted);line-height:1.7;max-width:400px;margin:0 auto}

/* ---------- card ---------- */
.auth-card{
  background:#fff;border-radius:18px;padding:38px 34px;
  box-shadow:0 18px 50px rgba(18,48,92,.10);
  border:1px solid var(--line);
}
.auth-card--wide{padding:42px 44px}

.auth-card__head{text-align:center;margin-bottom:26px}
.auth-logo{max-width:180px;height:auto;margin-bottom:16px}
.auth-card__head h2{font-size:27px;font-weight:700;color:var(--ink);margin-bottom:6px}
.auth-card__head p{font-size:15px;color:var(--muted);margin:0}

/* ---------- group title ---------- */
.auth-group-title{
  font-size:16px;font-weight:700;color:var(--ink);
  margin:26px 0 16px;padding-bottom:9px;border-bottom:1px solid var(--line);
}
.auth-group-title:first-of-type{margin-top:0}
.auth-group-title i{color:var(--pri);margin-right:8px}

/* ---------- fields ---------- */
.auth-card .form-group{margin-bottom:20px}
.auth-card label{
  display:block;font-size:13.5px;font-weight:500;color:var(--ink);
  margin-bottom:7px;letter-spacing:.2px;
}
.auth-card label span{color:#e03131}

.auth-card .ip{position:relative}
.auth-card .ip > i{
  position:absolute;left:16px;top:50%;transform:translateY(-50%);
  color:var(--muted);font-size:14px;pointer-events:none;
}
.auth-card .ip input,
.auth-card .ip select{
  width:100%;height:52px;padding:0 46px 0 44px;
  border:1.5px solid var(--line);border-radius:11px;background:#fbfcfe;
  font-family:'Ubuntu',sans-serif;font-size:15px;color:var(--ink);
  transition:.25s ease;appearance:none;
}
.auth-card .ip select{
  background-image:url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7a90' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'/%3e%3c/svg%3e");
  background-repeat:no-repeat;background-position:right 16px center;background-size:17px;
}
.auth-card .ip input:focus,
.auth-card .ip select:focus{
  outline:none;border-color:var(--pri);background:#fff;
  box-shadow:0 0 0 4px rgba(47,111,237,.12);
}
.auth-card .ip input::placeholder{color:#a9b4c4}

.pw-toggle{
  position:absolute;right:8px;top:50%;transform:translateY(-50%);
  width:36px;height:36px;border:0;background:transparent;color:var(--muted);
  cursor:pointer;border-radius:8px;
}
.pw-toggle:hover{color:var(--pri);background:#f0f4fd}

/* ---------- checkbox ---------- */
.auth-check label{display:flex;align-items:flex-start;gap:10px;font-weight:400;color:var(--muted);cursor:pointer;font-size:14.5px}
.auth-check input{width:18px;height:18px;margin-top:2px;accent-color:var(--pri);flex-shrink:0}

/* ---------- submit ---------- */
.auth-submit{
  width:100%;height:54px;border:0;cursor:pointer;
  background:linear-gradient(135deg,var(--pri),var(--pri-dark));
  color:#fff;border-radius:11px;font-size:16px;font-weight:500;
  display:flex;align-items:center;justify-content:center;gap:9px;
  transition:.25s ease;
}
.auth-submit:hover{transform:translateY(-2px);box-shadow:0 12px 26px rgba(47,111,237,.34);color:#fff}

.auth-foot{text-align:center;margin:18px 0 0;font-size:14.5px;color:var(--muted)}
.auth-foot a{color:var(--pri);font-weight:500}
.auth-foot a:hover{text-decoration:underline}

/* ---------- alerts ---------- */
.auth-alert{border-radius:11px;padding:14px 18px;margin-bottom:22px;font-size:14.5px}
.auth-alert ul{margin:0;padding-left:18px}
.auth-alert li{margin:3px 0}
.auth-alert--error{background:#fdecec;border:1px solid #f5c6c6;color:#9b1c1c}

/* ---------- dashboard ---------- */
.dash-section{padding-top:90px}
.dash-head{margin-bottom:28px}
.dash-head h2{font-size:30px;font-weight:700;color:var(--ink);margin-bottom:6px}
.dash-head p{color:var(--muted);font-size:16px;margin:0}

.badge-plan{
  display:inline-block;padding:4px 13px;border-radius:20px;
  background:rgba(18,184,134,.14);color:#0b6b4f;
  font-size:12.5px;font-weight:700;letter-spacing:.5px;
}

.dash-stat{
  background:#fff;border:1px solid var(--line);border-radius:15px;
  padding:24px 22px;margin-bottom:22px;
  box-shadow:0 10px 28px rgba(18,48,92,.06);transition:.25s ease;
}
.dash-stat:hover{transform:translateY(-4px);box-shadow:0 16px 36px rgba(18,48,92,.11)}
.dash-stat i{font-size:22px;color:var(--pri);margin-bottom:12px;display:block}
.dash-stat h4{font-size:13px;text-transform:uppercase;letter-spacing:1px;color:var(--muted);margin-bottom:6px;font-weight:500}
.dash-stat p{font-size:19px;font-weight:700;color:var(--ink);margin:0}

.dash-details > div{margin-bottom:16px}
.dash-details label{font-size:12.5px;text-transform:uppercase;letter-spacing:.8px;color:var(--muted);margin-bottom:4px;display:block}
.dash-details p{font-size:16px;color:var(--ink);font-weight:500;margin:0}

/* ---------- misc ---------- */
.plan-note{margin-top:26px;font-size:14.5px;color:var(--muted);text-align:center}

/* ---------- responsive ---------- */
@media (max-width:767px){
  .auth-section{padding:70px 0 60px}
  .auth-card,.auth-card--wide{padding:28px 20px;border-radius:14px}
  .auth-card__head h2{font-size:23px}
  .dash-head h2{font-size:24px}
}
