:root{
  --bg: #fce6f4;
  --primary: #86cbc6;
  --primary-700: #497572;
  --text: #1f2937;
  --muted: #6b7280;
  --card-bg: #ffffff;
  --error-bg: #fde8ec;
  --error-text: #b4233b;
  --ring: rgba(134,203,198,.45);
  --radius: 18px;
  --shadow: 0 12px 38px rgba(0,0,0,.10);
}

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

/* Centrado perfecto */
.page{
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 16px;
}

/* Card */
.login-card{
  width: min(480px, 92vw);
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(20px, 3.5vw, 32px);
  display: grid;
  gap: 14px;
  justify-items: center;
}

.logo-card{
  width: clamp(90px, 22vw, 120px);
  height: auto;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.06));
}

.login-title{
  margin: 2px 0 6px;
  font-size: clamp(18px, 2.6vw, 22px);
  font-weight: 800;
  letter-spacing: .2px;
  text-align: center;
}

/* Alert de error */
.alert{
  width: 100%;
  background: var(--error-bg);
  color: var(--error-text);
  border: 1px solid #f8c8d1;
  padding: 10px 12px;
  border-radius: 10px;
  text-align: center;
  font-weight: 600;
}

/* Form */
.login-form{
  width: 100%;
  display: grid;
  gap: 12px;
}

.campo{
  display: grid;
  gap: 6px;
}

.campo label{
  font-size: .92rem;
  color: var(--muted);
}

.campo input{
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #fff;
  outline: none;
  font-size: 1rem;
  transition: box-shadow .2s, border-color .2s;
}

.campo input::placeholder{ color: #9ca3af; }
.campo input:focus{
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--ring);
}

/* Botones */
.boton{
  display: inline-block;
  width: 100%;
  text-align: center;
  padding: 12px 16px;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: var(--primary);
  border: none;
  border-radius: 12px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .06s ease, background .2s ease;
}

.boton:hover{ background: var(--primary-700); }
.boton:active{ transform: translateY(1px); }

.boton.secundario{
  width: auto;
  background: transparent;
  color: var(--primary-700);
  border: 2px solid var(--primary-700);
  padding: 10px 14px;
  border-radius: 12px;
}
.boton.secundario:hover{
  color: #fff;
  background: var(--primary-700);
}

/* Hint */
.hint{
  margin: 6px 0 0;
  color: var(--muted);
  font-size: .95rem;
  text-align: center;
}


/* Contact links */
.contact{
  width: 100%;
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.contact img{
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}


.contact a{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow .2s, border-color .2s, transform .06s;
}

.contact a:hover{
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--ring);
}

.contact a:active{
  transform: translateY(1px);
}

.contact svg{
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  color: var(--primary-700);
}

.contact span{
  font-weight: 600;
  line-height: 1;
}


/* Responsive pequeños */
@media (max-width: 420px){
  .login-card{ padding: 16px; border-radius: 16px; }
  .logo-card{ width: 84px; }
  .boton{ font-size: .98rem; }
}
