/* COLORES*/
:root {
    --blue: #2F73C2;
    --blue-dark: #195DAC;
    --bg: #ffffff;
    --text: #222;
}

/* CONTENEDOR GENERAL */
body {
    margin: 0;
    padding: 20px;
    font-family: Inter, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    min-height: 100vh;
    text-align: center;
}

/*  pantallas pequeñas */
@media (max-height: 600px) {
    body {
        justify-content: flex-start;
        padding-top: 40px;
    }
}

/* TÍTULO */
h1 {
    width: 100%;
    max-width: 360px;
    color: var(--blue-dark);
    font-size: clamp(1.6rem, 4vw, 2.2rem); /* Se adapta a pantallas */
    margin: 0 0 1.2rem;
}

/*  MENSAJE DE REGISTRO */
#msg-registered {
    padding: 0.8rem;
    border-radius: 8px;
    background: #e6f8ea;
    color: #157a29 !important;
    font-weight: 600;
    width: 100%;
    max-width: 360px;
    margin-bottom: 1rem;
}

/* FORMULARIO  */
form {
    width: 100%;
    max-width: 360px;
    background: white;
    padding: 2rem;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(25, 93, 172, 0.18);
}

/*  móviles */
@media (max-width: 400px) {
    form {
        padding: 1.4rem;
    }
}

label {
    display: block;
    text-align: left;
    font-weight: 600;
    margin: 0.5rem 0 0.3rem;
    color: var(--blue-dark);
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

/* INPUTS  */
input {
    width: 100%;
    padding: 0.8rem;
    border-radius: 10px;
    border: 1px solid #d9e5f7;
    font-size: clamp(0.95rem, 2.6vw, 1rem);
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}

input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 8px rgba(47,115,194,0.25);
}

/*BOTÓN */
form button {
  --c1: #195DAC;
  --c2: #2F73C2;

  padding: 12px;
  font-size: clamp(1rem, 3.2vw, 1.1rem);
  font-weight: 600;
  letter-spacing: 0.5px;

  width: 100%;
  margin-top: 1.3rem;

  color: var(--c1);
  background: transparent;

  border: 2px solid var(--c1);
  border-radius: 14px;

  cursor: pointer;
  transition: 0.35s ease;
  position: relative;
  overflow: hidden;

  box-shadow: 0 0 0 rgba(0,0,0,0);
}

form button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 120%;
  height: 100%;
  background: linear-gradient(
      120deg, 
      transparent 0%, 
      rgba(255,255,255,0.25) 50%, 
      transparent 100%
  );
  transition: 0.5s;
}

form button:hover {
  border-color: var(--c2);
  background: linear-gradient(135deg, var(--c1), var(--c2));
  color: #ffffff;
  box-shadow: 0 8px 28px rgba(25, 93, 172, 0.35);
}

form button:hover::before {
  left: 100%;
}

/* LINK DE REGISTRO  */
a {
    margin-top: 1.2rem;
    display: inline-block;
    color: var(--blue-dark);
    font-weight: 600;
    font-size: clamp(0.95rem, 2.8vw, 1rem);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}



/* BOTÓN VOLVER A INICIO (INTEGRADO) */
.btn-volver {
    margin-top: 0.6rem;

    background: transparent;
    border: none;

    color: #666;
    font-size: 0.85rem;
    font-weight: 500;

    cursor: pointer;
    transition: color 0.25s ease;
}

.btn-volver:hover {
    color: var(--blue-dark);
    text-decoration: underline;
}