@font-face {
  font-family: 'Roboto';
  src: url('Roboto-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'Playfair Display';
  src: url('PlayfairDisplay-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'Segoe UI';
  src: url('Segoe UI.ttf') format('truetype');
}




/* ================= RESET ================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
}

body {
  background: url("fondo5.jpg") center/cover no-repeat;
  color: #666;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ================= LOGIN ================= */

.login-wrapper {
  width: 100%;
  padding: 20px;
}

.login-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 20px;
  padding: 32px 28px;
  max-width: 380px;
  margin: auto;
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* ================= LOGO ================= */

.login-logo {
  text-align: center;
  margin-bottom: 18px;
}

.logo-top {
  width: 70px;
  display: block;
  margin: auto;
}

.logo-bottom {
  width: 160px;
  margin-top: 8px;
}

/* ================= TITLES ================= */

.login-title {
  text-align: center;
  font-size: 1.2rem;
  margin-top: 8px;
}

.login-subtitle {
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 24px;
}

/* ================= FORM ================= */

.input-group {
  display: block;
  margin-bottom: 16px;
}

.input-label {
  font-size: 0.85rem;
  color: #666;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #8b0000;
  font-size: 0.9rem;
}

#login-form input {
  width: 100%;
  padding: 10px 12px 10px 34px;
  border-radius: 10px;
  border: 1px solid #666;
  background: #fff;
  color: #666;
  transition: all 0.2s ease;
}

#login-form input:focus {
  outline: none;
  border-color: #8b0000;
  box-shadow: 0 0 0 1px #8b0000;
}

/* ================= BUTTON ================= */

.login-btn {
  margin-top: 14px;
  width: 100%;
  background: #8b0000;
  color: #fff;
  border: none;
  padding: 11px 14px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.login-btn:hover {
  background: #6f0000;
  transform: translateY(-1px);
}

/* ================= REGISTER ================= */

.login-register {
  margin-top: 18px;
  font-size: 14px;
  text-align: center;
  color: #666;
}

.login-register a {
  color: #8b0000;
  text-decoration: none;
  font-weight: 600;
  margin-left: 4px;
}

.login-register a:hover {
  text-decoration: underline;
}

/* ================= ERROR ================= */

.login-error {
  margin-top: 12px;
  font-size: 0.8rem;
  color: #8b0000;
  text-align: center;
}

/* ================= VOLVER ================= */
.flecha-volver {
  position: fixed; /* 👈 siempre visible */
  top: 20px;
  left: 20px;
  z-index: 9999; /* 👈 por encima de todo */
  display: flex;
  align-items: center;
  justify-content: center;
}

.flecha-volver img {
  width: 40px; /* tamaño desktop */
  height: auto;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* hover sutil */
.flecha-volver img:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

/* ================= MOBILE ================= */

@media (max-width: 420px) {

  .login-card {
    padding: 26px 20px;
  }

  .logo-bottom {
    width: 140px;
  }

}

/*ojo del password*/
.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #666;
}

/* aseguramos posicionamiento correcto */
.input-wrapper {
  position: relative;
}

/* espacio para el icono */
.input-wrapper input {
  padding-right: 40px;
}

/* Flecha Volver */
@media (max-width: 768px) {
  .flecha-volver {
    top: 12px;
    left: 12px;
  }

  .flecha-volver img {
    width: 32px; /* más chica en celular */
  }
}