/* =========================
   LOGIN THEME (UTVM)
   Basado en tu paleta / variables
   ========================= */

/* Si NO cargas el CSS del index en login, deja este :root.
   Si SÍ lo cargas, puedes eliminarlo para evitar duplicar variables. */
:root{
  --blue-900: #003878;
  --blue-800: #004aad;
  --blue-700: #0671b6;
  --blue-500: #2079bd;
  --blue-300: #19abef;

  --cyan-300: #5de0e6;
  --gold-500: #edab20;
  --white: #ffffff;

  --bg: var(--white);
  --text: #0b1b2a;

  --primary: var(--blue-800);
  --primary-dark: var(--blue-900);
  --primary-mid: var(--blue-700);

  --accent: var(--gold-500);
  --accent-2: var(--cyan-300);
  --hover: var(--blue-300);

  --grad-menu: linear-gradient(to bottom, var(--primary), var(--blue-500));
  --shadow-soft: 0 4px 8px rgba(0,0,0,0.2);

  --navbar-height: 90px;

  /* Hero sizes */
  --hero-h-desktop: 320px;
  --hero-h-mobile: 240px;
}

/* =========================
   1) BASE
   ========================= */
*{
  box-sizing: border-box;
  font-family: 'poppins';
  cursor: url("cr.png"), auto;
}
a, .btn, button{
  cursor: url("cr_o.png"), auto;
  text-decoration: none;
}

.login-page{
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

/* =========================
   2) HEADER
   ========================= */
.login-header{
  background: var(--grad-menu);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}

.login-header .container{
  position: relative;
  gap: 10px;
}

.login-brand img{
  width: 120px;
  height: auto;
  display: block;
}
@media (min-width: 768px){
  .login-brand img{ width: 140px; }
}

.login-back{
  color: rgba(255,255,255,.95);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;

  white-space: nowrap;
  padding: 8px 12px;
  border-radius: 999px;

  background: rgba(255,255,255,.10);
  backdrop-filter: blur(6px);
}
.login-back:hover{
  color: var(--white);
  background: rgba(255,255,255,.14);
}

/* Título centrado en desktop */
.login-title{
  font-weight: 800;
  letter-spacing: .6px;
  text-shadow: 0 1px 0 rgba(0,0,0,.25);

  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}

/* Título en móvil */
.login-title-sm{
  font-weight: 800;
  letter-spacing: .6px;
  text-shadow: 0 1px 0 rgba(0,0,0,.25);
  color: var(--white);
}

/* Botón tipo "favorito" */
.btn_favorite{
  border-bottom: 1px solid rgba(255,255,255,.2);
  text-shadow: 0 1px 0 rgba(0,0,0,.2);
  text-transform: uppercase;
  color: var(--white) !important;
  font-weight: bold;

  border-radius: 10px;
  padding: 10px 14px;
  margin: 0;
  position: relative;
  display: inline-block;
  transition: all 0.1s;

  background: linear-gradient(to bottom, var(--blue-900), var(--blue-800));
  box-shadow: 0 10px 0 var(--blue-900),
              0 11px 5px rgba(0,0,0,.25);
}
.btn_favorite:active{
  transform: translateY(7px);
  box-shadow: 0 3px 0 var(--blue-900),
              0 4px 6px rgba(0,0,0,.35);
}

/* MÓVIL: evitar encimados en header */
@media (max-width: 767px){
  .login-header .container{
    flex-wrap: wrap;
    justify-content: center !important;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .login-title{
    position: static;
    transform: none;
    width: 100%;
    text-align: center;
    order: 3;
    margin-top: 6px;
  }

  .login-header .container > div:first-child{
    width: 100%;
    justify-content: center;
    order: 1;
  }

  .login-header .container > div:last-child{
    width: 100%;
    justify-content: center;
    order: 2;
    flex-wrap: wrap;
  }

  .login-header .btn{
    padding: 8px 12px !important;
    font-size: 13px !important;
    border-radius: 999px;
  }

  .btn_favorite{
    box-shadow: 0 6px 0 var(--blue-900),
                0 8px 10px rgba(0,0,0,.18);
  }
}

/* =========================
   3) MAIN + CARD
   ========================= */
.login-main{
  padding: 28px 0 52px;
}

/* Centrado vertical en web */
@media (min-width: 992px){
  .login-main{
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    padding: 24px 0 40px;
  }
}

.login-card{
  width: 100%;
  max-width: 760px;
  margin: 0 auto;

  border-radius: 18px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0,0,0,.06);
}

/* =========================
   4) HERO IMAGE (SIN RECORTE)
   Estrategia: contain (no recorta el texto nunca)
   ========================= */
.login-hero{
  position: relative;
  background: #f4f6fb;
}

.login-hero-img{
  width: 100%;
  height: var(--hero-h-desktop);
  display: block;

  object-fit: contain;     /* ✅ no recorta */
  object-position: center;
  background: #f4f6fb;
}

@media (max-width: 576px){
  .login-hero-img{
    height: var(--hero-h-mobile);
  }
}

/* =========================
   5) CONTENIDO
   ========================= */
.login-body{
  padding: 20px 22px 24px;
  text-align: center;
}
@media (min-width: 992px){
  .login-body{ padding: 18px 28px 24px; }
}

.login-subtitle{
  font-weight: 800;
  color: var(--text);
}

/* =========================
   6) OPCIONES (BOTONES GRANDES)
   ========================= */
.login-option{
  width: 100%;
  min-height: 88px;
  border-radius: 16px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;

  color: var(--white);
  font-weight: 900;
  letter-spacing: .2px;

  box-shadow: 0 10px 24px rgba(0,0,0,.12);
  transition: transform .15s ease, filter .15s ease;
}
.login-option i{
  font-size: 30px;
  line-height: 1;
}
.login-option:hover{
  transform: translateY(-2px);
  filter: brightness(.98);
}
.login-option:active{
  transform: translateY(1px);
}

.login-option--primary{ background: var(--grad-menu); }
.login-option--accent{ background: linear-gradient(to bottom, var(--accent), #f2b83c); }

/* Desktop: icono + texto en línea */
@media (min-width: 992px){
  .login-option{
    min-height: 80px;
    border-radius: 18px;
    flex-direction: row;
    gap: 12px;
    justify-content: center;
  }
  .login-option i{ font-size: 26px; }
  .login-option span{ font-size: 16px; }
}

/* =========================
   7) HINT
   ========================= */
.login-hint{
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 10px 12px;
  border-radius: 14px;

  background: rgba(0,0,0,.04);
  color: rgba(11,27,42,.85);
  font-size: 12.5px;

  width: 100%;
  justify-content: center;
}
.login-hint i{ font-size: 18px; }

@media (min-width: 992px){
  .login-hint{
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    padding: 10px 14px;
  }
}
