/* =========================
   THE FIELD-STYLE WP LOGIN
   ========================= */

/* Fondo + tipografía */
body.login{
  min-height: 100%;
  display: flex;
  align-items: top;
  justify-content: center;
  background: linear-gradient(180deg, #115229 0%, #21452e 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Arial, sans-serif;
}

/* Contenedor */
body.login #login{
  width: 360px;
  padding: 0;
  margin: 0;
}
.language-switcher{
  display: none;
}
/* “Card” del formulario */
body.login #loginform{
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
  border-radius: 18px;
  padding: 26px 22px 22px;
  min-height: 300px;
}
.forgetmenot{
  display: none !important
}
p#nav{
  /*
      position: absolute;
    bottom: 200px;
    left: 0;
    right: 0;
*/
}
form#lostpasswordform{
  background: none !important;
      min-height: 200px;
}
/* Logo (usa el de WP, pero lo hacemos tipo icono centrado) */
body.login h1{
  margin: 0 0 14px;
  padding: 0;
}

input#wp-submit{
  float: none;
  width: 100%;
  margin-top: 20px;
      background-color: #ffffff;
  border-color: #134425;
  font-size: 1rem;
  text-transform: uppercase;
  font-weight: bold;
  color: #134425 !important;
}
.wp-core-ui .button, .wp-core-ui .button-secondary{
  color:white !important;
}

body.login h1 a{
  width: 92px;
  height: 92px;
  background-size: contain;
  background-position: center;
  border-radius: 999px;
  margin: 0 auto 8px;
  opacity: .95;
  filter: drop-shadow(0 10px 16px rgba(0,0,0,.15));
  background-image: url(https://train.thefield.es/wp-content/uploads/2025/09/logo-blanco.png) !important;
}

/* Mensajes y enlaces */
body.login .message,
body.login #login_error,
body.login .success{
  border-left: 0;
  border-radius: 14px;
  background: rgba(255,255,255,0.16);
  color: #fff;
  box-shadow: none;
}
body.login .message a,
body.login #login_error a,
body.login .success a{
  color: #fff;
  text-decoration: underline;
}

/* Labels */
body.login label{
  color: rgba(255,255,255,0.92);
  font-weight: 600;
  letter-spacing: .2px;
}

/* Inputs */
body.login .input,
body.login input[type="text"],
body.login input[type="password"]{
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 10px;
  color: #fff;
  padding: 12px 14px 12px 40px; /* espacio para el icono */
  height: 44px;
  box-shadow: none;
  outline: none;
  transition: .15s ease;
}
body.login .input::placeholder{
  color: rgba(255,255,255,0.75);
}
body.login .input:focus,
body.login input[type="text"]:focus,
body.login input[type="password"]:focus{
  border-color: rgba(255,255,255,0.55);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.12);
}

/* Iconos “tipo app” (CSS puro) */
body.login p.login-username,
body.login p.login-password{
  position: relative;
}
body.login p.login-username::before,
body.login p.login-password::before{
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  opacity: .95;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
}

/* Usuario (icono user) */
body.login p.login-username::before{
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}

/* Password (candado) */
body.login p.login-password::before{
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
}

/* Remember / Forgot */
body.login .forgetmenot label{
  color: rgba(255,255,255,0.88);
  font-weight: 500;
}
body.login #nav,
body.login #backtoblog{
  text-align: center;
  margin: 14px 0 0;
}
body.login #nav a,
body.login #backtoblog a{
  color: rgba(255,255,255,0.90);
}
body.login #nav a:hover,
body.login #backtoblog a:hover{
  color: #fff;
  text-decoration: underline;
}

/* Botón Login (blanco, redondeado) */
body.login .wp-core-ui .button-primary{
  background: rgba(255,255,255,0.95);
  color: #1b1b1b;
  border: 0;
  border-radius: 12px;
  height: 46px;
  line-height: 46px;
  width: 100%;
  font-weight: 700;
  letter-spacing: .2px;
  box-shadow: 0 14px 26px rgba(0,0,0,0.15);
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}
body.login .wp-core-ui .button-primary:hover{
  opacity: .98;
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(0,0,0,0.18);
}
body.login .wp-core-ui .button-primary:active{
  transform: translateY(0);
}

/* Ajustes de layout dentro del form */
body.login p.submit{
  margin-top: 14px;
}
body.login .forgetmenot{
  margin-top: 8px;
}

/* Oculta “Powered by WordPress” / enlaces si quieres (opcional) */
/*
body.login #backtoblog{ display:none; }
*/