.custom-register-frame {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.frame {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: background-image 1s ease-in-out;
}

.wrap,
.contentclass {
  position: relative;
  z-index: 1;
  background: transparent;
}

.wrapper {
  max-width: 480px;
  margin: 14px auto 10px auto;
  border-radius: 20px;
  padding: 20px 40px;
  box-shadow: 0 4px 24px rgba(34, 114, 177, 0.16), 0 1.5px 6px rgba(0, 0, 0, 0.06);
  font-family: Arial;
  background: #fff;
}

.wrapper h1 {
  color: #0088ff;
  font-size: 22px;
  margin-bottom: 15px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.wrapper h1 a {
  color: #0088ff;
}

.wrapper h1 a:hover {
  color: #006dcc;
}

.wrapper ul {
  color: #d54e21;
}

.wrapper label {
  font-size: 14px;
}

.wrapper input[type="text"],
.wrapper input[type="email"],
.wrapper input[type="password"] {
  width: 100%;
  padding: .4em;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-bottom: 5px;
  transition: all 0.2s ease;
}

.wrapper input[type="text"]:focus,
.wrapper input[type="email"]:focus,
.wrapper input[type="password"]:focus {
  border-color: #0080ff;
  box-shadow: 0 0 8px rgba(0, 115, 170, 0.4);
}

/* Aplica esto al DIV que envuelve al input y al span.toggle */
.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

/* El toggle se coloca absolutamente pero con top/bottom auto */
.password-toggle {
  position: absolute;
  right: 10px;
  width: 20px;
  cursor: pointer;
}

.eye-closed {
  display: none;
  margin-bottom: 5px;
}

.wrapper small {
  display: block;
  font-size: 14px;
}

.wrapper button[type="submit"] {
  width: 100%;
}

.wrapper.success {
  text-align: center;
}

.wrapper.success h1 {
  font-size: 40px;
}

.wrapper.success p {
  font-size: 16px;
  color: #525252;
  margin-bottom: 30px;
  line-height: 1.6;
}

header.banner.headerclass {
  display: none;
}

.wrapper.closed {
  max-width: 500px;
}

.g-recaptcha {
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
}

.nextend-social-login {
  display: flex;
  justify-content: center;
}

.login-link {
  color: #007bff;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background 0.2s ease, color 0.2s ease;
  margin-left: 4px;
}

.login-link:hover {
  background: rgba(0, 123, 255, 0.1);
  color: #0056b3;
}

.btn-outline-primary.btn-back {
  background-color: #f0f4ff;
  border: 2px solid #4a90e2;
  color: #307dd5;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.btn-outline-primary.btn-back:hover,
.btn-outline-primary.btn-back:focus {
  background-color: #e2ecfd;
  border-color: #3076d1;
  color: #1d4db5;
  text-decoration: none;
  box-shadow: 0 0 0 0.1rem rgba(66, 139, 202, 0.4);
}

#containerfooter {
  padding-top: 0 !important;
}

.footercredits.clearfix {
  display: none;
}

/*Sirve para panel de login*/

.message {
    border-radius: 10px;
    border: 1px solid #46b450;
    padding: 10px;
    background: #ecf9ec;
    color: #2e7d32;
}

.link-reset-pass {
  display: inline-block;
  font-size: 17px;
  font-weight: bold;
  color: #c00;
  padding: 4px 10px;
  border-radius: 5px;
  text-decoration: none;
  background-color: transparent;
  transition: background-color 0.2s, color 0.2s;
}

.link-reset-pass:hover {
  background-color: #ffe5e5;
  color: #a00;
  cursor: pointer;
}

.dni-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 14px;
}

.dni-option {
  display: flex;
  align-items: center;
  padding: 1rem;
  border: 2px solid #ccc;
  border-radius: 8px;
  cursor: pointer;
  gap: 0.75rem;
}

.dni-option input[type="radio"] {
  margin: 0;
  width: 18px;
  height: 18px;
}

.dni-option:hover,
.dni-option input:checked + span {
  border-color: #007bff;
  background: #f0f8ff;
}

/*termina login*/

/* Media Query para pantallas más pequeñas (móviles y tablets) */
@media (max-width: 500px) {
  .wrap.contentclass {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 100vh;
  }

  .wrapper {
    max-width: 90%;
    max-height: 90%;
  }

  .wrapper h1 {
    font-size: 28px;
    margin-bottom: 10px;
  }

  .wrapper label {
    font-size: 12px;
  }

  .wrapper small {
    font-size: 12px;
    margin-bottom: 15px;
  }

  .wrapper.success h1 {
    font-size: 32px;
  }

  .wrapper.success p {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .g-recaptcha {
    transform: scale(0.77);
    -webkit-transform: scale(0.77);
  }

  .nextend-social-login {
    flex-direction: column;
    align-items: center;
  }

  .nextend-social-login>* {
    margin: 5px 0;
  }

  .login-link {
    font-size: 14px;
    margin-left: 2px;
  }

  .btn-outline-primary.btn-back {
    font-size: 16px;
    padding: 8px 16px;
  }
}