/* COLORES */
:root {
    --blue: #2F73C2;
    --blue-dark: #195DAC;
    --bg: #ffffff;
    --text: #222;
}

/* CONTENEDOR GENERAL*/
* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 24px;
    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 muy pequeñas */
@media (max-height: 600px) {
    body {
        justify-content: flex-start;
        padding-top: 40px;
    }
}

/*  TÍTULO */
h1 {
    width: 100%;
    max-width: 560px;
    margin: 0 0 1.4rem;
    color: var(--blue-dark);
    font-size: clamp(1.9rem, 4vw, 2.4rem);

    background: #ffffff;
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: 0 6px 18px rgba(25, 93, 172, 0.08);
    margin-left: auto;
    margin-right: auto;
}

/*  MENSAJE DE REGISTRO */
#msg-registered {
    padding: 1rem;
    border-radius: 10px;
    background: #e6f8ea;
    color: #157a29 !important;
    font-weight: 600;
    width: 100%;
    max-width: 560px;
    margin: 1rem auto;
    box-shadow: 0 4px 12px rgba(25,93,172,0.06);
}

/*   FORMULARIO */
form {
    width: 100%;
    max-width: 560px;
    background: #ffffff;
    padding: 2rem;
    border-radius: 18px;
    box-shadow: 0 8px 22px rgba(25, 93, 172, 0.18);

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin: 0 auto;
}

/*   móvil */
@media (max-width: 640px) {
    form {
        max-width: 95%;
        padding: 1.6rem;
    }
}

/* LABELS */
label {
    width: 100%;
    display: block;
    text-align: left;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--blue-dark);
    font-size: 1.05rem;
    align-self: flex-start;
}

/* INPUTS */
input {
    width: 100%;
    padding: 1.05rem;
    border-radius: 12px;
    border: 1px solid #d9e5f7;
    font-size: 1.1rem;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    align-self: stretch;
}

input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 10px rgba(47,115,194,0.25);
}

input[type="email"],
input[type="password"],
input[type="text"] {
    -webkit-appearance: none;
    appearance: none;
}

/*  BOTÓN */
form button {
  --c1: #195DAC;
  --c2: #2F73C2;

  padding: 16px;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.6px;

  width: 100%;
  margin-top: 1rem;

  color: var(--c1);
  background: transparent;

  border: 2px solid var(--c1);
  border-radius: 18px;

  cursor: pointer;
  transition: 0.35s ease;
  position: relative;
  overflow: hidden;
}

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 10px 30px rgba(25, 93, 172, 0.35);
}

form button:hover::before {
  left: 100%;
}

/* ENLACE */
a {
    margin-top: 14px;
    display: inline-block;
    color: var(--blue-dark);
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;

    width: 100%;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

a:hover {
    text-decoration: underline;
}

/* Ajustes extra */
form br { display: none; }

/* ===============================
   FORMULARIO EN DOS COLUMNAS
================================ */

.form-grid {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.form-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* botón ocupa todo el ancho */
form button {
    grid-column: 1 / -1;
}

/* responsive: 1 columna en móvil */
@media (max-width: 640px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}




/* BOTÓN VOLVER A INICIO */
.btn-volver {
    margin-top: 6px;

    background: transparent;
    border: none;

    color: #666;
    font-size: 0.9rem;
    font-weight: 500;

    cursor: pointer;
    transition: color 0.25s ease;
}

.btn-volver:hover {
    color: var(--blue-dark);
    text-decoration: underline;
}