/* ===== Reset y configuración básica ===== */
    *, *::before, *::after { box-sizing: border-box; }
    html, body { height: 100%; margin: 0; }
    body {
      font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
      background: url("../img/mina.jpg") no-repeat center center fixed;
      background-size: cover;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 24px;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      color: #222;
    }

    /* Overlay oscuro para mejorar legibilidad del formulario */
    body::before {
      content: "";
      position: fixed;
      inset: 0;
      background: linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0.65));
      z-index: 0;
      pointer-events: none;
    }

    /* Contenedor principal */
    .login-wrapper {
      position: relative;
      z-index: 1;
      width: 100%;
      max-width: 420px;
    }

    .card {
      background: rgba(255,255,255,0.97);
      border-radius: 14px;
      padding: 28px 28px;
      box-shadow: 0 12px 30px rgba(0,0,0,0.45);
      overflow: hidden;
    }

    /* Marca / Logo */
    .brand {
      display: flex;
      gap: 14px;
      align-items: center;
      justify-content: center;
      margin-bottom: 8px;
    }
    .brand img {
      width: 88px;
      height: 88px;
      object-fit: contain;
      border-radius: 10px;
      background: transparent;
    }
    .brand h1 {
      font-size: 18px;
      margin: 0;
      font-weight: 600;
      letter-spacing: 0.6px;
      color: #111;
      text-transform: uppercase;
    }
    .brand small {
      display: block;
      font-weight: 400;
      font-size: 12px;
      color: #666;
    }

    h2 {
      text-align: center;
      margin: 10px 0 20px;
      font-size: 20px;
      color: #1f1f1f;
      font-weight: 600;
      letter-spacing: 0.6px;
    }

    /* Formulario organizado */
    .form-group {
      margin-bottom: 14px;
    }
    label {
      display: block;
      margin-bottom: 6px;
      font-size: 13px;
      font-weight: 600;
      color: #333;
    }

    input[type="text"],
    input[type="password"] {
      width: 100%;
      padding: 12px 14px;
      border-radius: 10px;
      border: 1px solid #d7d7d7;
      font-size: 14px;
      outline: none;
      transition: box-shadow .18s ease, border-color .18s ease, transform .12s ease;
      background: #fff;
    }

    input[type="text"]::placeholder,
    input[type="password"]::placeholder {
      color: #9b9b9b;
    }

    input[type="text"]:focus,
    input[type="password"]:focus {
      border-color: #d32f2f;
      box-shadow: 0 6px 18px rgba(211,47,47,0.08);
    }

    /* Contenedor para campo de contraseña con botón para mostrar */
    .password-group {
      position: relative;
    }
    .toggle-password {
      position: absolute;
      right: 10px;
      top: 65%;
      transform: translateY(-50%);
      background: transparent;
      border: none;
      font-size: 13px;
      cursor: pointer;
      color: #666;
      padding: 6px;
    }

    /* Botón principal */
    .btn-submit {
      display: inline-block;
      width: 100%;
      padding: 12px;
      border-radius: 10px;
      border: none;
      background: linear-gradient(90deg, #d32f2f, #f57c00 60%, #fbc02d);
      color: #fff;
      font-weight: 700;
      font-size: 15px;
      cursor: pointer;
      text-transform: uppercase;
      letter-spacing: 0.6px;
      transition: transform .12s ease, box-shadow .15s ease;
    }

    .btn-submit:hover {
      transform: translateY(-2px);
      box-shadow: 0 10px 22px rgba(0,0,0,0.18);
    }

    /* Acciones adicionales (links) */
    .form-footer {
      margin-top: 12px;
      font-size: 13px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 10px;
    }
    .form-footer a {
      color: #444;
      text-decoration: none;
    }
    .form-footer a:hover { text-decoration: underline; color: #000; }

    /* Pie pequeño */
    .copyright {
      margin-top: 14px;
      text-align: center;
      font-size: 12px;
      color: #777;
    }

    /* Responsive */
    @media (max-width: 420px) {
      .card { padding: 20px; border-radius: 12px; }
      .brand img { width: 72px; height: 72px; }
    }