/* themes/nico/assets/css/auth.css
   SmartPanel Auth (Blue + Orange brand, bigger logo, reduced scrolling)
*/

:root{
  --bg:#f3f4f6;
  --card:#ffffff;
  --text:#111827;
  --muted:#6b7280;
  --border:#e5e7eb;

  /* BRAND COLORS (Blue + Orange) */
  --primary:#2563eb;     /* blue */
  --primary-2:#1d4ed8;   /* darker blue */
  --accent:#f97316;      /* orange */
  --accent-2:#ea580c;    /* darker orange */

  --danger:#dc2626;
  --success:#16a34a;

  --shadow: 0 12px 40px rgba(17,24,39,.10);
  --radius:16px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body.auth-page{
  margin:0;
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Inter,Arial,sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* Wrapper */
.auth-wrap{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:14px 12px; /* reduced so forms fit */
}

/* Card */
.auth-card{
  width:100%;
  max-width:420px;
  background:var(--card);
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:16px 16px; /* reduced */
}

/* Brand / Logo */
.brand{
  display:flex;
  justify-content:center;
  margin-bottom:10px; /* reduced */
}
.brand img{
  height:52px;      /* bigger logo */
  width:auto;
  max-width:220px;  /* prevent overflow */
  object-fit:contain;
}

/* Titles */
.auth-title{
  text-align:center;
  margin:0;
  font-size:20px;
  font-weight:700;
  letter-spacing:-.2px;
}
.auth-subtitle{
  text-align:center;
  margin:4px 0 12px; /* reduced */
  font-size:13px;
  color:var(--muted);
}

/* Spacing */
.form-group{ margin-bottom:10px; }

/* Inputs */
.form-control{
  width:100%;
  height:40px;             /* reduced from 44px */
  border:1px solid var(--border);
  border-radius:12px;
  padding:8px 12px;        /* reduced */
  font-size:14px;
  outline:none;
  background:#fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-control:focus{
  border-color: rgba(249,115,22,.55); /* orange focus */
  box-shadow: 0 0 0 4px rgba(37,99,235,.10), 0 0 0 2px rgba(249,115,22,.10);
}

/* Password show/hide etc */
.input-with-action{ position:relative; }
.input-action-btn{
  position:absolute;
  top:50%;
  right:10px;
  transform:translateY(-50%);
  border:0;
  background:transparent;
  padding:6px;
  border-radius:10px;
  cursor:pointer;
  color: var(--muted);
  transition: background .15s ease, color .15s ease;
}
.input-action-btn:hover{
  background: rgba(17,24,39,.06);
  color: var(--text);
}
.input-action-btn svg{ display:block; }

/* Primary button (Blue -> Orange) */
.btn-primary{
  width:100%;
  height:40px; /* match inputs */
  border:0;
  border-radius:12px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color:#fff;
  font-weight:700;
  letter-spacing:.2px;
  cursor:pointer;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  box-shadow: 0 10px 24px rgba(37,99,235,.18);
}
.btn-primary:hover{
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 14px 30px rgba(249,115,22,.22);
}
.btn-primary:active{ transform: translateY(0); }

/* Links */
.row-between{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin:8px 0 10px; /* reduced */
}

.link{
  color: var(--primary);
  text-decoration:none;
  font-weight:600;
  font-size:13px;
  transition: color .15s ease, text-decoration-color .15s ease;
}
.link:hover{
  color: var(--accent);
  text-decoration: underline;
}

/* Helper text + status */
.help-text{
  margin-top:4px; /* reduced */
  font-size:12px;
  color: var(--muted);
}
.help-text.success{ color: var(--success); }
.help-text.error{ color: var(--danger); }

.hr{
  border:0;
  border-top:1px solid var(--border);
  margin:14px 0;
}

.footer-text{
  text-align:center;
  font-size:13px;
  color: var(--muted);
  margin:0;
}

/* WhatsApp row */
.phone-row{
  display:flex;
  gap:10px;
}
.phone-row select{
  width:140px;
  min-width:140px;
  height:40px; /* keep consistent */
}
.phone-row input{
  flex:1;
  min-width:0;
}

/* Strength meter */
.strength{
  display:flex;
  gap:6px;
  margin-top:8px;
}
.strength span{
  height:4px;
  flex:1;
  border-radius:4px;
  background:#e5e7eb;
}
.strength span.on.weak{ background:#ef4444; }
.strength span.on.med{ background:#f59e0b; }
.strength span.on.strong{ background:#22c55e; }

/* Small screens */
@media (max-width:420px){
  .auth-wrap{ padding:12px 10px; }
  .auth-card{ padding:14px 12px; }
  .brand img{ height:48px; max-width:200px; }

  .phone-row{ flex-direction:column; }
  .phone-row select{ width:100%; min-width:0; }
}

/* Short height screens (prevents scrolling on many phones) */
@media (max-height: 750px){
  .auth-wrap{ padding:10px 10px; }
  .auth-card{ padding:12px 12px; }
  .brand{ margin-bottom:8px; }
  .brand img{ height:46px; }

  .auth-subtitle{ margin:4px 0 10px; }
  .form-group{ margin-bottom:8px; }

  .help-text{ margin-top:3px; }
}
