/* ===== RESET GLOBAL ===== */
* {
    box-sizing: border-box;   /* 🔹 Evita que padding/border rompan el ancho */
  }
  
  html, body {
    height: 100%;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }
  
  /* ===== BODY ===== */
  body {
    display: flex;
    justify-content: center;
    align-items: center;
    background: url('../assets/img/fondos/fondo.webp') no-repeat center/cover fixed;
    color: #fff;
  }
  
  /* ===== CONTENEDOR ===== */
  .container {
    width: 100%;
    max-width: 380px;          /* 🔹 límite en desktop */
    padding: 28px 22px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid #FFB703;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 6px 14px rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);
    animation: fadeIn 0.6s ease-out;
  }
  
  /* ===== TÍTULO ===== */
  h1 {
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: 600;
  }
  h1 i { color: #FFB703; margin-right: 6px; }
  
  /* ===== FORMULARIO ===== */
  form {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  
  /* Inputs */
  form input {
    width: 100%;               /* 🔹 ocupa todo el ancho del contenedor */
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: #222;
    font-size: 14px;
    transition: border 0.2s, background 0.2s, box-shadow 0.2s;
  }
  
  form input:focus {
    border-color: #FFB703;
    background: #fff;
    outline: none;
    box-shadow: 0 0 6px rgba(255, 183, 3, 0.5);
  }
  
  /* Botón */
  form button {
    width: 100%;
    padding: 12px;
    background: #FFB703;
    color: #000;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
  }
  form button:hover { background: #e0a800; transform: translateY(-2px); }
  form button i { margin-right: 6px; }
  
  /* Nota pequeña */
  form small {
    font-size: 12px;
    color: #ccc;
    line-height: 1.4;
  }
  
  /* Mensajes */
  .msg {
    margin-top: 14px;
    font-weight: 600;
    color: #e74c3c;
  }
  .msg a { color: #FFB703; font-weight: 600; text-decoration: none; }
  .msg a:hover { text-decoration: underline; }
  
  /* Volver */
  a.volver {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    color: #FFB703;
    font-weight: 600;
    text-decoration: none;
  }
  a.volver:hover { text-decoration: underline; }
  
  /* Animación */
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  
  /* ===== RESPONSIVE ===== */
  @media (max-width: 480px) {
    .container {
      max-width: 90%;          /* 🔹 en móviles ocupa casi todo */
      padding: 24px 18px;
    }
    h1 { font-size: 20px; }
  }
  