/* /asset_user/css/login.css */

:root{
  --bg:#f4f6fb;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#64748b;
  --line:#e5e7eb;
  --line2:#dbe2ee;
  --shadow: 0 10px 30px rgba(15,23,42,.08);
  --radius:16px;

  --primary:#2563eb;
  --primary2:#1d4ed8;

  --ok:#16a34a;
  --warn:#d97706;
  --bad:#dc2626;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background: var(--bg);
  color: var(--text);
}

a{ color: inherit; }
img{ max-width:100%; display:block; }

.wrap{
  max-width: 980px;
  margin: 0 auto;
  padding: 16px 14px 44px;
}

/* =========================
   TYPO + UTILS
========================= */
.h1{ margin:0; font-size: 22px; font-weight: 900; letter-spacing:.2px; }
.h2{ margin:0; font-size: 18px; font-weight: 900; }
.muted{ color: var(--muted); }
.small{ font-size: 12px; }
.big{ font-size: 18px; font-weight: 900; }
.mt8{ margin-top:8px; }
.mt12{ margin-top:12px; }
.mt16{ margin-top:16px; }

.row-between{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:10px;
}
.row-right{
  display:flex;
  justify-content:flex-end;
  gap:10px;
}
.row-between .link{
  color: var(--primary);
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
}
.row-between .link:hover{ text-decoration: underline; }

/* =========================
   CARD / BOX
========================= */
.card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  margin-top: 14px;
}
.card p{ margin: 8px 0 0; }

.box{
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid var(--line);
}

/* =========================
   GRIDS
========================= */
.grid3{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
  margin-top: 14px;
}
.grid2{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}

@media (max-width: 720px){
  .grid3{ grid-template-columns: 1fr; }
  .grid2{ grid-template-columns: 1fr; }
  .h1{ font-size: 20px; }
}

/* =========================
   COUNTRY
========================= */
.country{
  text-decoration:none;
  padding: 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
  display:flex;
  gap:12px;
  align-items:center;
}
.country:hover{
  transform: translateY(-1px);
  border-color: #c7d2fe;
  box-shadow: 0 10px 22px rgba(15,23,42,.08);
}
.country__flag{
  width:44px;height:44px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--line);
}
.country__name{ font-weight: 900; }
.country__meta{ color: var(--muted); font-size: 13px; margin-top: 2px; }

/* =========================
   LOCAL BUTTONS
========================= */
.local{
  text-decoration:none;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
  display:flex;
  gap:12px;
  align-items:center;
}
.local:hover{
  transform: translateY(-1px);
  border-color: #bfdbfe;
  box-shadow: 0 10px 22px rgba(15,23,42,.08);
}
.local__img{
  width:56px;height:56px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--line);
  background:#f1f5f9;
}
.local__title{ font-weight: 900; }
.local__meta{ color: var(--muted); font-size: 13px; margin-top: 2px; }

/* =========================
   FORMS
========================= */
.label{
  display:block;
  margin-bottom: 6px;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.form-row{
  margin-top: 14px;
  display:grid;
  grid-template-columns: 1fr 220px;
  gap: 10px;
  align-items:end;
}
@media (max-width: 720px){
  .form-row{ grid-template-columns: 1fr; }
}

.input{
  width:100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--line2);
  background: #fff;
  color: var(--text);
  outline: none;
}
.input::placeholder{ color: #94a3b8; }
.input:focus{
  border-color: #93c5fd;
  box-shadow: 0 0 0 4px rgba(59,130,246,.12);
}

/* =========================
   PHONE 3 inputs (cc-area-num)
========================= */
.phone3{
  display:flex;
  gap:10px;
  align-items:center;
}

.phone3__cc{
  width: 92px;
  padding-right: 10px;
}

.phone3__area{
  width: 92px;
}

.phone3__num{
  flex: 1 1 auto;
  min-width: 180px;
}

/* =========================
   BUTTONS
========================= */
.btn{
  border: 1px solid #1e40af;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--primary), var(--primary2));
  color: white;
  font-weight: 900;
  cursor: pointer;
  transition: transform .12s ease, filter .12s ease, opacity .12s ease;
}
.btn:hover{ transform: translateY(-1px); filter: brightness(1.02); }
.btn:active{ transform: translateY(0px); }
.btn:disabled{ opacity:.60; cursor:not-allowed; }

.linkbtn{
  border:0;
  background:transparent;
  color: var(--primary);
  font-weight:900;
  cursor:pointer;
  padding: 0;
  text-decoration:none;
}
.linkbtn:hover{ text-decoration:underline; }

/* =========================
   PILLS / MSG
========================= */
.pill{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .2px;
  border: 1px solid var(--line2);
  background: #fff;
}
.pill.ok{ border-color: rgba(22,163,74,.30); color: #166534; background:#ecfdf5; }
.pill.warn{ border-color: rgba(217,119,6,.30); color: #92400e; background:#fffbeb; }
.pill.bad{ border-color: rgba(220,38,38,.30); color: #991b1b; background:#fef2f2; }

.msg{
  margin-top: 12px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--line2);
  background: #fff;
  color: #0f172a;
}
.msg.ok{ border-color: rgba(22,163,74,.30); background:#ecfdf5; }
.msg.warn{ border-color: rgba(217,119,6,.30); background:#fffbeb; }
.msg.bad{ border-color: rgba(220,38,38,.30); background:#fef2f2; }

/* =========================
   SEGMENT (SEXO)
========================= */
.seg{ display:flex; gap:10px; }
.seg__btn{
  flex:1;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--line2);
  background: #fff;
  color: #0f172a;
  font-weight: 900;
  cursor: pointer;
  transition: background .12s ease, border-color .12s ease, transform .12s ease;
}
.seg__btn:hover{ transform: translateY(-1px); }
.seg__btn.is-on{
  background: #eff6ff;
  border-color: #93c5fd;
}

/* =========================
   PASSWORD UX (eye + hints)
========================= */
.passwrap{ position: relative; }
.passwrap .input{ padding-right: 44px; }

.eye{
  position:absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 10px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(0,0,0,.03);
  color: rgba(0,0,0,.75);
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; user-select:none;
}
.eye:active{ transform: translateY(-50%) scale(.98); }

.hintlist{ margin:10px 0 0; padding:0; list-style:none; display:grid; gap:8px; }
.hintlist li{ display:flex; align-items:center; gap:8px; font-size: 13px; opacity:.9; }
.hintdot{ width:10px; height:10px; border-radius:999px; background:#7b7b7b; flex:0 0 10px; }
.is-ok .hintdot{ background:#3fb950; }
.is-bad .hintdot{ background:#b42318; }

.fielderr{
  margin-top: 6px;
  font-size: 12px;
  color: #b42318;
}

.input.is-error{
  border-color: rgba(180,35,24,.55);
  box-shadow: 0 0 0 3px rgba(180,35,24,.12);
}

/* =========================
   FOOTER
========================= */
.footer{
  margin-top: 18px;
  text-align:center;
  color: #94a3b8;
  font-size: 12px;
}

/* Evita el auto-zoom en iOS al enfocar inputs */
@media (max-width: 768px){
  input, select, textarea{
    font-size: 16px !important;
  }
}
