/* ==========================================
   LOGIN MOBILE · WIFICOR (STYLE APP · FULL)
   - FULL WIDTH (sin delgado)
   - MORADO PURO (#4C1D95) sin gradiente
   - SIN GLASS: sin blur, sin transparencias, sin overlays
   - Misma estructura HTML (no tocar PHP)
   ========================================== */

*{box-sizing:border-box}
html,body{height:100%}

:root{
  --brand:#4C1D95;          /* ✅ morado puro */
  --txt:#0b1220;
  --muted:#64748b;
  --line:rgba(2,6,23,.12);
  --card:#fff;
  --r:34px;
  --h:50px;
  --shadow:0 18px 55px rgba(2,6,23,.14);
}

body{
  margin:0;
  font-family:"Roboto",system-ui,-apple-system,"Segoe UI",Arial,sans-serif !important;
  background:#f3f5fb;
  color:var(--txt);
}

/* Ocultar promo en móvil */
.wf-promo{display:none !important;}

/* FULL WIDTH: nada de centrado “delgado” */
.wf-login{
  min-height:100%;
  display:block;
  padding:0;              /* ✅ full-bleed */
}

/* Contenedor: sin max-width */
.wf-shell{
  width:100%;
  max-width:none;         /* ✅ */
}

/* Card principal FULL */
.wf-card{
  position:relative;
  width:100%;
  min-height:100vh;
  border-radius:0;        /* ✅ tipo app full */
  background:var(--card);
  box-shadow:none;        /* ✅ sin glass/shadow exterior */
  overflow:hidden;
  border:0;
}

/* Header morado PURO (SIN gradiente) */
.wf-card::before{
  content:"";
  position:absolute;
  left:0; right:0; top:0;
  height:260px;
  background:var(--brand);  /* ✅ puro */
  z-index:0;
}



/* Ocultar header desktop */
.wf-head{display:none !important;}

/* =========================
   APPBAR (HERO)
   ========================= */
.wf-appbar{
  display:block;
  position:relative;
  z-index:2;
  padding:24px 18px 18px;
  background:transparent;
}

.wf-appbar-left{
  display:flex;
  align-items:center;
  gap:12px;
}

/* Logo en chip blanco (NO glass, sólido) */
.wf-app-logo{
  width:52px;height:52px;
  border-radius:18px;
  background:#fff;                           /* ✅ sólido */
  border:1px solid rgba(255,255,255,.35);
  display:flex;align-items:center;justify-content:center;
  overflow:hidden;
  padding:8px;
  box-shadow:0 10px 26px rgba(2,6,23,.18);
}

.wf-app-logo img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
  filter:none !important;
  transform:none !important;
}

/* Títulos */
.wf-app-title .t1{
  font-size:18px;
  font-weight:900;
  color:#fff;
  line-height:1.1;
}
.wf-app-title .t2{
  font-size:12px;
  font-weight:800;
  color:rgba(255,255,255,.86);
  margin-top:4px;
}

/* =========================
   CUERPO BLANCO (panel)
   ========================= */
.wf-country,
.wf-alert,
.wf-form{
  position:relative;
  z-index:2;
}

/* Panel blanco sube y redondea como app */
.wf-country{
  margin-top:150px;                 /* baja desde header morado */
  background:#fff;
  border-radius:28px 28px 0 0;
  padding:16px 16px 0;
}

/* Form continúa el panel */
.wf-form{
  background:#fff;
  padding:10px 16px 18px;
  border-radius:0 0 28px 28px;
  margin-bottom:0;
  border-top:1px solid rgba(2,6,23,.06);
}

/* Info país */
.wf-country .info{
  font-size:12px;
  font-weight:900;
  color:#334155;
  line-height:1.45;
}

/* =========================
   FLAGS (nítidas)
   ========================= */
.wf-flagform{margin-top:10px}

.wf-flags{
  display:flex;
  gap:10px;
  align-items:center;
  overflow:auto;
  padding:10px;
  border-radius:16px;
  background:#f6f7fb;
  border:1px solid rgba(2,6,23,.08);
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
}
.wf-flags::-webkit-scrollbar{display:none}

/* tamaño normal “app” */
.wf-flagbtn{
  width:44px;height:30px;
  border-radius:12px;
  border:1px solid rgba(2,6,23,.12);
  background:#fff;
  padding:0;
  overflow:hidden;
  flex:0 0 auto;
  display:flex;align-items:center;justify-content:center;
}

/* ✅ esto quita borrosidad típica por transform/filters */
.wf-flagbtn img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  image-rendering:auto !important;
  filter:none !important;
  transform:none !important;
  -webkit-transform:none !important;
  backface-visibility:hidden;
}

.wf-flagbtn.active{
  outline:3px solid rgba(76,29,149,.16);
  border-color:rgba(76,29,149,.55);
}

/* Badge lock */
.country-lock-badge{
  margin-left:8px;
  font-size:11px;
  font-weight:900;
  padding:3px 8px;
  border-radius:999px;
  background:#eef2ff;
  border:1px solid rgba(76,29,149,.20);
  color:#4c1d95;
}

/* =========================
   ALERT
   ========================= */
.wf-alert{
  margin:10px 16px 0;
  padding:10px 12px;
  border-radius:14px;
  background:#fff1f2;
  border:1px solid #fecdd3;
  color:#9f1239;
  font-weight:900;
  font-size:13px;
}

/* =========================
   INPUTS / SELECT
   ========================= */
.wf-input,.wf-select{
  width:100%;
  height:var(--h);
  border-radius:16px;
  border:1px solid var(--line);
  background:#fff;
  padding:0 14px;
  font-size:14px;
  font-weight:900;
  outline:none;
  margin-top:10px;
}

.wf-input:focus,.wf-select:focus{
  border-color:rgba(76,29,149,.42);
  box-shadow:0 0 0 4px rgba(76,29,149,.12);
}

.wf-role-hint{
  font-size:12px;
  font-weight:800;
  color:var(--muted);
  margin-top:6px;
  margin-left:2px;
}

/* row */
.wf-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 2px 0;
  font-size:13px;
  font-weight:800;
  color:#334155;
}

#recover-link{
  color:var(--brand);
  text-decoration:none;
  font-weight:900;
}

/* =========================
   BOTÓN (puro, sin gradiente)
   ========================= */
.wf-btn{
  width:100%;
  height:56px;
  margin-top:14px;
  border:none;
  border-radius:16px;
  background:var(--brand);           /* ✅ puro */
  color:#fff;
  font-weight:900;
  letter-spacing:.6px;
  font-size:15px;
  cursor:pointer;
  box-shadow:0 16px 40px rgba(76,29,149,.24);
}
.wf-btn:active{transform:translateY(1px)}

/* footer */
.wf-foot{
  text-align:center;
  padding:12px 0 2px;
  font-size:12px;
  font-weight:900;
  color:var(--muted);
}

.wf-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:8px 2px 0;
  font-size:12px;
  font-weight:900;
  color:var(--muted);
}

.mini-loader{
  width:18px;height:18px;
  border-radius:999px;
  border:3px solid rgba(76,29,149,.16);
  border-top-color:rgba(76,29,149,.70);
  animation:spin .9s linear infinite;
  display:none;
}
@keyframes spin{to{transform:rotate(360deg)}}





/* =========================================================
   MOBILE: ICONOS/FIGURAS estilo SVG (SIN GLASS)
   - Decora el header morado con “watermark”
   - Iconos dentro de inputs (usuario / perfil / clave)
   ========================================================= */

/* 1) Watermark tipo SVG en el header morado */
.wf-card::before{
  /* ya tienes el fondo morado puro aquí, lo dejamos */
  background: var(--brand) !important;
}

/* Volvemos a habilitar ::after SOLO como watermark (sin transparencias tipo glass, sin blur) */
.wf-card::after{
  content:"";
  position:absolute;
  left:0; right:0; top:0;
  height:260px;               /* igual que el header */
  z-index:1;                  /* debajo del contenido (appbar) */
  pointer-events:none;

  /* 3 capas: aros + router + persona (todo blanco con opacidad baja) */
  background:
    /* Aros (rings) */
    radial-gradient(circle at 120px 120px, rgba(255,255,255,.10) 0 2px, transparent 3px) ,
    radial-gradient(circle at 120px 120px, transparent 0 128px, rgba(255,255,255,.08) 129px 131px, transparent 132px) ,
    radial-gradient(circle at 120px 120px, transparent 0 190px, rgba(255,255,255,.05) 191px 193px, transparent 194px) ,

    /* Router (simple) */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='460' height='180' viewBox='0 0 460 180'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='10' opacity='.18'%3E%3Crect x='80' y='86' width='300' height='84' rx='28'/%3E%3Cpath d='M150 18v92' stroke-linecap='round'/%3E%3Cpath d='M310 18v92' stroke-linecap='round'/%3E%3C/g%3E%3Cg fill='%23ffffff' opacity='.18'%3E%3Ccircle cx='170' cy='128' r='8'/%3E%3Ccircle cx='206' cy='128' r='8' opacity='.7'/%3E%3Ccircle cx='242' cy='128' r='8' opacity='.4'/%3E%3C/g%3E%3C/svg%3E"),

    /* Persona (simple) */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cg fill='%23ffffff' opacity='.16'%3E%3Ccircle cx='110' cy='92' r='34'/%3E%3Cpath d='M52 184c8-38 34-58 58-58s50 20 58 58'/%3E%3C/g%3E%3C/svg%3E");

  background-repeat:no-repeat;
  background-position:
    0 0,
    0 0,
    0 0,
    60% 78%,
    18% 88%;
  background-size:
    auto,
    auto,
    auto,
    520px auto,
    240px auto;

  /* ✅ sin blur, sin filtros */
  filter:none !important;
}

/* Asegura que el appbar esté encima del watermark */
.wf-appbar{ position:relative; z-index:2; }

/* 2) Iconos dentro de inputs (SIN tocar HTML) */
.wf-input, .wf-select{
  padding-left:44px; /* espacio para ícono */
  background-repeat:no-repeat;
  background-position:14px 50%;
  background-size:18px 18px;
}

/* Usuario */
#user.wf-input{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%2364748b' d='M12 12a4 4 0 1 0-4-4 4 4 0 0 0 4 4Zm0 2c-4 0-8 2-8 5v1h16v-1c0-3-4-5-8-5Z'/%3E%3C/svg%3E");
}
#user.wf-input:focus{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%234C1D95' d='M12 12a4 4 0 1 0-4-4 4 4 0 0 0 4 4Zm0 2c-4 0-8 2-8 5v1h16v-1c0-3-4-5-8-5Z'/%3E%3C/svg%3E");
}

/* Perfil (select) */
#loginRole.wf-select{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%2364748b' d='M12 2a5 5 0 1 0 5 5 5 5 0 0 0-5-5ZM4 20a8 8 0 0 1 16 0v1H4Z'/%3E%3C/svg%3E");
}
#loginRole.wf-select:focus{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%234C1D95' d='M12 2a5 5 0 1 0 5 5 5 5 0 0 0-5-5ZM4 20a8 8 0 0 1 16 0v1H4Z'/%3E%3C/svg%3E");
}

/* Password */
#pass.wf-input{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%2364748b' d='M17 9h-1V7a4 4 0 0 0-8 0v2H7a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-8a2 2 0 0 0-2-2Zm-7-2a2 2 0 0 1 4 0v2h-4Z'/%3E%3C/svg%3E");
}
#pass.wf-input:focus{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%234C1D95' d='M17 9h-1V7a4 4 0 0 0-8 0v2H7a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-8a2 2 0 0 0-2-2Zm-7-2a2 2 0 0 1 4 0v2h-4Z'/%3E%3C/svg%3E");
}



















@media (max-width:900px){

/* ocultar select real */
.wf-native-hide{
  position:absolute !important;
  left:-9999px !important;
  width:1px !important;
  height:1px !important;
  opacity:0 !important;
}

/* =========================
   BOTÓN MORADO (PRO)
   ========================= */
.wf-select-pro{
  width:100%;
  height:var(--h);
  border-radius:16px;
  border:0;
  margin-top:10px;

  background:#4C1D95;        /* ✅ morado puro */
  color:#fff;

  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 16px;

  font-size:15px;
  font-weight:900;
  letter-spacing:.3px;
}

/* flecha */
.wf-select-pro .caret{
  width:18px;
  height:18px;
  background-repeat:no-repeat;
  background-size:18px 18px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
}

/* =========================
   OVERLAY LIMPIO (SIN OSCURECER)
   ========================= */
.wf-sheet-overlay{
  position:fixed;
  inset:0;
  z-index:9998;
  background:transparent;     /* ✅ nada oscuro */
}

/* =========================
   SHEET BLANCO (APP PRO)
   ========================= */
.wf-sheet{
  position:fixed;
  left:0; right:0; bottom:0;
  z-index:9999;

  background:#fff;            /* ✅ blanco */
  border-radius:22px 22px 0 0;

  transform:translateY(100%);
  transition:transform .22s ease;

  max-height:70vh;
  overflow:auto;

  box-shadow:0 -18px 40px rgba(2,6,23,.18);
}
.wf-sheet.open{ transform:translateY(0); }

/* =========================
   HEADER SHEET
   ========================= */
.wf-sheet-top{
  padding:14px 16px 10px;
  border-bottom:1px solid rgba(2,6,23,.08);
}

.wf-sheet-top .title{
  font-size:14px;
  font-weight:900;
  color:#4C1D95;
  text-align:center;
}

/* =========================
   LISTA PRO (BLANCO)
   ========================= */
.wf-sheet-list{
  padding:8px 12px 12px;
}

/* item */
.wf-opt{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;

  padding:14px 12px;
  margin-top:10px;

  border-radius:14px;
  border:1px solid rgba(2,6,23,.10);
  background:#fff;

  font-size:15px;
  font-weight:900;
  color:#0b1220;
}

/* seleccionado */
.wf-opt.active{
  border-color:#4C1D95;
  background:#f5f3ff;
}

/* check */
.wf-opt .dot{
  width:18px;
  height:18px;
  border-radius:999px;
  border:2px solid #4C1D95;
}
.wf-opt.active .dot{
  background:#4C1D95;
}

/* =========================
   BOTÓN LISTO (MORADO)
   ========================= */
.wf-sheet .close{
  margin:12px;
  height:52px;
  width:calc(100% - 24px);

  border:0;
  border-radius:16px;
  background:#4C1D95;
  color:#fff;

  font-weight:900;
  letter-spacing:.6px;
}
}







