* {
   box-sizing: border-box;
}

html, body {
   margin: 0;
   padding: 0;
   height: 100%;
}

body {
   font-family: var(--fuente), 'Roboto', Arial, sans-serif;
   color: #1a1a2e;
   background-color: #ffffff;
}

a {
   text-decoration: none;
}

/* ====== Layout partido ====== */
.split {
   display: flex;
   min-height: 100vh;
}

.split-image {
   flex: 1;
   background-image: url('../img/imagen.jpg');
   background-size: cover;
   background-position: center;
   background-repeat: no-repeat;
}

.split-form {
   flex: 1;
   display: flex;
   align-items: center;
   justify-content: center;
   position: relative;
   background-color: #ffffff;
   padding: 40px;
}

/* ====== Barra de idiomas ====== */
.lang-bar {
   position: absolute;
   top: 28px;
   right: 36px;
   font-size: 13px;
   font-weight: 700;
   letter-spacing: 0.5px;
}

.lang-bar a {
   margin-left: 14px;
   text-transform: uppercase;
}

/* ====== Caja de login ====== */
.login-box {
   width: 100%;
   max-width: 380px;
}

.login-logo {
   text-align: center;
   margin-bottom: 14px;
}

.login-logo img {
   max-width: 230px;
   width: 70%;
   height: auto;
}

.login-subtitle {
   text-align: center;
   color: #555;
   font-size: 17px;
   font-weight: 400;
   margin: 0 0 50px;
}

/* ====== Campos con etiqueta flotante ====== */
.field {
   position: relative;
   margin-bottom: 34px;
}

.field input {
   width: 100%;
   border: none;
   border-bottom: 1px solid #c4c4c4;
   background: transparent;
   padding: 8px 2px;
   font-size: 16px;
   font-family: inherit;
   color: #1a1a2e;
   outline: none;
   transition: border-color 0.2s ease;
}

.field input:focus {
   border-bottom: 2px solid #e30613;
}

.field label {
   position: absolute;
   left: 2px;
   top: 9px;
   color: #9a9a9a;
   font-size: 16px;
   pointer-events: none;
   transition: all 0.18s ease;
}

.field input:focus ~ label,
.field input:not(:placeholder-shown) ~ label {
   top: -13px;
   font-size: 12px;
   color: #777;
}

.field input:focus ~ label {
   color: #e30613;
}

/* ====== Botones ====== */
.buttons {
   display: flex;
   gap: 18px;
   margin-top: 52px;
}

.btn {
   flex: 1;
   border: none;
   padding: 16px 10px;
   font-size: 14px;
   font-family: inherit;
   font-weight: 700;
   letter-spacing: 1px;
   text-transform: uppercase;
   color: #ffffff;
   cursor: pointer;
   transition: opacity 0.18s ease, background-color 0.18s ease;
}

.btn:hover {
   opacity: 0.9;
}

.btn-cancel {
   background-color: #1a1a2e;
}

.btn-submit {
   background-color: #e30613;
}

/* ====== Enlace recuperar contraseña ====== */
.reset-link {
   text-align: center;
   margin-top: 26px;
}

.reset-link a {
   color: #777;
   font-size: 13px;
}

.reset-link a:hover {
   color: #e30613;
}

/* ====== Responsive ====== */
@media screen and (max-width: 850px) {
   .split-image {
      display: none;
   }
   .split-form {
      flex: 1 1 100%;
   }
}
