/* =========================================================
   C4FM AUTH UNIVERSAL - TEST2 PRO 3
   Diseño limpio y uniforme
   ========================================================= */

:root{
  --bg-1:#030811;
  --bg-2:#071523;
  --bg-3:#0b1d30;

  --card:#081523;
  --card-2:#0b1c2e;

  --border:rgba(148,163,184,.16);
  --border-hover:rgba(82,183,255,.42);

  --text:#f7fbff;
  --muted:#8fa4b8;
  --muted-2:#647b91;

  --blue:#1688ff;
  --blue-light:#49b5ff;
  --green:#19c86d;
  --green-light:#69efa4;
  --red:#df4b4b;

  --focus:#51bcff;

  --shadow:0 28px 80px rgba(0,0,0,.48);
  --blue-shadow:0 12px 30px rgba(22,136,255,.20);
  --green-shadow:0 12px 30px rgba(25,200,109,.16);
  --red-shadow:0 12px 30px rgba(223,75,75,.14);
}

/* =========================
   RESET
   ========================= */

*{
  box-sizing:border-box;
}

html{
  min-height:100%;
  scroll-behavior:smooth;
}

body{
  margin:0;
  min-height:100vh;
  padding:24px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow-x:hidden;

  color:var(--text);
  font-family:Inter,Segoe UI,Roboto,Arial,Helvetica,sans-serif;

  background:
    radial-gradient(circle at 15% 8%,rgba(22,136,255,.18),transparent 29%),
    radial-gradient(circle at 88% 18%,rgba(25,200,109,.10),transparent 25%),
    radial-gradient(circle at 76% 92%,rgba(73,181,255,.07),transparent 28%),
    linear-gradient(145deg,var(--bg-1),var(--bg-2) 48%,var(--bg-3));
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  opacity:.45;

  background:
    linear-gradient(rgba(255,255,255,.014) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.010) 1px,transparent 1px);

  background-size:36px 36px;

  mask-image:linear-gradient(
    to bottom,
    rgba(0,0,0,.60),
    transparent 82%
  );
}

/* =========================
   CONTENEDOR
   ========================= */

.auth-shell,
.auth-card,
.card{
  width:min(100%,560px);
}

.auth-card,
.card{
  position:relative;
  overflow:hidden;

  padding:38px;

  border:1px solid var(--border);
  border-radius:26px;

  background:
    linear-gradient(
      180deg,
      rgba(10,24,40,.97),
      rgba(6,16,28,.98)
    );

  box-shadow:var(--shadow);

  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
}

.auth-card::before,
.card::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:4px;

  background:
    linear-gradient(
      90deg,
      var(--blue),
      var(--blue-light),
      var(--green)
    );
}

.auth-card::after,
.card::after{
  content:"";
  position:absolute;

  width:220px;
  height:220px;

  top:-130px;
  right:-120px;

  border-radius:50%;

  background:rgba(22,136,255,.08);
  filter:blur(20px);

  pointer-events:none;
}

/* =========================
   CABECERA
   ========================= */

.brand{
  position:relative;
  z-index:1;

  margin:3px 0 10px;

  text-align:center;

  font-size:42px;
  line-height:1;

  font-weight:950;
  letter-spacing:1.7px;

  text-shadow:
    0 8px 28px rgba(73,181,255,.12);
}

.brand span{
  color:var(--green-light);
}

.subtitle{
  margin-bottom:30px;

  text-align:center;

  color:var(--muted);

  font-size:14px;
  letter-spacing:.25px;
}

/* =========================
   TITULOS
   ========================= */

h1,
h2,
h3{
  margin-top:0;
}

h2{
  margin:0 0 24px;

  text-align:center;

  font-size:27px;
  line-height:1.2;
}

/* =========================
   CAJAS
   ========================= */

.info,
.info-box,
.user-card,
.msg,
.message,
.code-box{
  margin-bottom:18px;
  padding:16px 17px;

  border-radius:16px;
}

/* INFO */

.info,
.info-box{
  color:#dceafa;

  font-size:14px;
  line-height:1.7;

  background:
    linear-gradient(
      180deg,
      rgba(22,136,255,.085),
      rgba(22,136,255,.030)
    );

  border:1px solid rgba(73,181,255,.18);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.025);
}

/* USUARIO */

.user-card{
  text-align:center;

  background:
    linear-gradient(
      180deg,
      rgba(25,200,109,.105),
      rgba(25,200,109,.040)
    );

  border:1px solid rgba(105,239,164,.20);

  box-shadow:var(--green-shadow);
}

.user-card .label{
  margin-bottom:6px;

  color:var(--muted);

  font-size:12px;
  font-weight:700;

  text-transform:uppercase;
  letter-spacing:1px;
}

.callsign{
  margin:3px 0;

  color:var(--green-light);

  font-size:30px;
  font-weight:950;

  letter-spacing:1px;
}

.name{
  color:#dbe7f2;
  font-size:15px;
}

/* =========================
   FORMULARIOS
   ========================= */

label{
  display:block;

  margin:17px 0 8px;

  color:#dce8f3;

  font-size:13px;
  font-weight:800;

  letter-spacing:.15px;
}

input,
select,
textarea{
  width:100%;
  min-height:50px;

  padding:0 15px;

  border:1px solid rgba(148,163,184,.25);
  border-radius:12px;

  outline:none;

  background:rgba(2,9,17,.78);
  color:#fff;

  font:inherit;
  font-size:15px;

  transition:
    border-color .18s ease,
    box-shadow .18s ease,
    background .18s ease,
    transform .18s ease;
}

textarea{
  min-height:120px;
  padding:13px 15px;
  resize:vertical;
}

input::placeholder,
textarea::placeholder{
  color:#61758b;
}

input:hover,
select:hover,
textarea:hover{
  border-color:rgba(148,163,184,.38);
  background:rgba(4,13,23,.90);
}

input:focus,
select:focus,
textarea:focus{
  border-color:var(--focus);

  background:rgba(5,14,25,.96);

  box-shadow:
    0 0 0 3px rgba(81,188,255,.11),
    0 8px 24px rgba(0,0,0,.12);
}

/* =========================
   BOTONES GENERALES
   ========================= */

.btn,
.button{
  display:flex;
  align-items:center;
  justify-content:center;

  width:100%;
  min-height:50px;

  margin-top:13px;
  padding:13px 17px;

  border:1px solid transparent;
  border-radius:12px;

  text-decoration:none;

  font-size:15px;
  font-weight:850;
  letter-spacing:.15px;

  cursor:pointer;

  transition:
    transform .16s ease,
    filter .16s ease,
    box-shadow .16s ease,
    border-color .16s ease,
    background .16s ease;
}

.btn:hover,
.button:hover{
  transform:translateY(-2px);
  filter:brightness(1.06);
}

.btn:active,
.button:active{
  transform:translateY(0);
}

/* AZUL */

.primary{
  color:#fff;

  background:
    linear-gradient(
      180deg,
      #2b98ff,
      #1177e7
    );

  box-shadow:var(--blue-shadow);
}

.primary:hover{
  box-shadow:
    0 18px 40px rgba(22,136,255,.25);
}

/* VERDE */

.success{
  color:#fff;

  background:
    linear-gradient(
      180deg,
      #1bca70,
      #129a54
    );

  box-shadow:var(--green-shadow);
}

.success:hover{
  box-shadow:
    0 18px 40px rgba(25,200,109,.21);
}

/* ROJO */

.danger{
  color:#fff;

  background:
    linear-gradient(
      180deg,
      #e15151,
      #b93636
    );

  box-shadow:var(--red-shadow);
}

.danger:hover{
  box-shadow:
    0 18px 40px rgba(223,75,75,.19);
}

/* SECUNDARIO */

.secondary{
  color:#e7f2fb;

  background:rgba(255,255,255,.045);

  border-color:rgba(148,163,184,.24);

  box-shadow:none;
}

.secondary:hover{
  background:rgba(255,255,255,.075);
  border-color:rgba(148,163,184,.36);
}

/* =========================
   BOTONES CUENTA
   LOS 3 TIENEN EXACTAMENTE
   EL MISMO TAMAÑO
   ========================= */

.auth-actions{
  display:flex;
  flex-direction:column;

  width:100%;

  gap:12px;

  margin-top:20px;
}

.auth-actions a,
.auth-action{
  display:flex !important;
  align-items:center;
  justify-content:center;

  width:100% !important;
  min-height:50px;

  margin:0 !important;
  padding:13px 17px;

  border:1px solid transparent;
  border-radius:12px;

  box-sizing:border-box;

  color:#fff !important;
  text-decoration:none !important;

  background:
    linear-gradient(
      180deg,
      #2b98ff,
      #1177e7
    );

  box-shadow:var(--blue-shadow);

  font-size:15px;
  font-weight:850;
  letter-spacing:.15px;

  transition:
    transform .16s ease,
    filter .16s ease,
    box-shadow .16s ease,
    background .16s ease;
}

.auth-actions a:hover,
.auth-action:hover{
  color:#fff !important;

  transform:translateY(-2px);
  filter:brightness(1.06);

  box-shadow:
    0 18px 40px rgba(22,136,255,.25);
}

.auth-actions a:active,
.auth-action:active{
  transform:translateY(0);
}

/* CERRAR SESION */

.auth-actions .logout,
.auth-actions a[href*="page=logout"]{
  background:
    linear-gradient(
      180deg,
      #e15151,
      #b93636
    );

  box-shadow:var(--red-shadow);
}

.auth-actions .logout:hover,
.auth-actions a[href*="page=logout"]:hover{
  box-shadow:
    0 18px 40px rgba(223,75,75,.19);
}

/* =========================
   MENSAJES
   ========================= */

.msg,
.message{
  font-size:14px;
  line-height:1.55;
}

.msg.error,
.message.error{
  color:#ffdada;

  background:rgba(223,75,75,.12);

  border:1px solid rgba(223,75,75,.29);
}

.msg.success,
.message.success{
  color:#d9ffe9;

  background:rgba(25,200,109,.11);

  border:1px solid rgba(25,200,109,.26);
}

/* =========================
   CODIGOS
   ========================= */

.code-box{
  background:
    linear-gradient(
      180deg,
      rgba(25,200,109,.10),
      rgba(22,136,255,.045)
    );

  border:1px solid rgba(105,239,164,.22);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.025);
}

.code-title{
  margin-bottom:9px;

  color:#c4eed7;

  font-size:12px;
  font-weight:900;

  letter-spacing:1.25px;
  text-transform:uppercase;
}

.code-box div:not(.code-title){
  margin-top:6px;
  color:#dceaf5;
}

.code-box strong{
  display:inline-block;

  margin-left:5px;

  color:var(--green-light);

  font-size:20px;
  letter-spacing:2px;
}

/* =========================
   LINKS
   ========================= */

.links{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  align-items:center;

  gap:12px 24px;

  margin-top:22px;

  color:var(--muted);

  font-size:13px;
}

.links a{
  color:#79c8ff;

  text-decoration:none;

  font-weight:800;
}

.links a:hover{
  color:#b9e4ff;
  text-decoration:underline;
}

/* =========================
   PERFIL
   ========================= */

.profile{
  overflow:hidden;

  margin-bottom:19px;

  border:1px solid var(--border);
  border-radius:15px;

  background:rgba(255,255,255,.028);
}

.profile div{
  display:flex;
  justify-content:space-between;
  align-items:center;

  gap:22px;

  min-height:48px;

  padding:12px 15px;

  border-bottom:1px solid rgba(148,163,184,.09);

  font-size:14px;
}

.profile div:last-child{
  border-bottom:0;
}

.profile b{
  color:var(--muted);
  font-weight:700;
}

.profile span{
  color:#edf5fb;
  text-align:right;
  overflow-wrap:anywhere;
}

/* =========================
   TEXTO PEQUEÑO
   ========================= */

.small{
  margin-top:16px;

  color:var(--muted);

  font-size:12px;
  line-height:1.65;
}

/* =========================
   FOOTER
   ========================= */

.footer{
  margin-top:28px;

  text-align:center;

  color:#667b91;

  font-size:11px;
  letter-spacing:.45px;

  text-transform:uppercase;
}

/* =========================
   CODE
   ========================= */

code{
  color:#bfe0f7;

  background:rgba(255,255,255,.055);

  border:1px solid rgba(148,163,184,.09);

  padding:2px 6px;

  border-radius:6px;
}

/* =========================
   SEPARADOR
   ========================= */

hr{
  margin:24px 0;

  border:0;
  border-top:1px solid rgba(148,163,184,.10);
}

/* =========================
   DESHABILITADO
   ========================= */

button:disabled,
.btn:disabled,
.button:disabled{
  opacity:.55;
  cursor:not-allowed;
  transform:none;
}

/* =========================
   MOVIL
   ========================= */

@media(max-width:700px){

  body{
    align-items:flex-start;
    padding:14px;
  }

  .auth-card,
  .card{
    margin:18px 0;
    padding:27px 20px;
    border-radius:21px;
  }

  .brand{
    font-size:34px;
  }

  h2{
    font-size:23px;
  }

  .profile div{
    align-items:flex-start;
    flex-direction:column;
    gap:5px;
  }

  .profile span{
    text-align:left;
  }

}

@media(max-width:560px){

  .auth-actions a,
  .auth-action{
    width:100% !important;
  }

  .links{
    gap:10px 18px;
  }

}

/* =========================
   REDUCIR ANIMACIONES
   ========================= */

@media(prefers-reduced-motion:reduce){

  *,
  *::before,
  *::after{
    scroll-behavior:auto!important;
    transition:none!important;
  }

}
