@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;500;600;700;800&family=Lato:wght@300;400;700&display=swap');

:root {
  --color-primary: #2D4059;
  --color-secondary: #EA8217;
  --color-white: #FFFFFF;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-bg-light: #F8F9FA;
  --color-border: #E0E0E0;
  --shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
  --font-titles: 'Raleway', sans-serif;
  --font-text: 'Lato', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-text);
}

/* ── Fondo visible alrededor del card ── */
body {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: url("../registrarse/img/REGISTRATE\ \(2\).png") no-repeat center center / cover;
  background-attachment: fixed;
  padding: 40px 20px; /* clave: permite ver el fondo alrededor */
}

body::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 0;
}

/* ── Contenedor ── */
.login-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 960px; /* más estrecho = más fondo visible a los lados */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ── Card ── */
.login-box {
  background-color: var(--color-white);
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: var(--shadow);
  width: 100%;
  max-height: 680px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.login-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ── Sección formulario ── */
.form-section {
  flex: 1;
  padding: 35px 45px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-y: auto; /* por si el contenido es alto (proveedor hotelero) */
}

.logo {
  width: 90px;
  margin-bottom: 10px;
}

.form-section h2 {
  font-family: var(--font-titles);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-primary);
  font-size: 20px;
  margin-bottom: 6px;
  text-align: center;
}

h3 {
  font-family: var(--font-titles);
  font-weight: 300;
  color: var(--color-primary);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 18px;
  text-align: center;
}

h3 .centered-line {
  display: block;
  text-align: center;
  margin-top: 4px;
}

/* ── Form ── */
form {
  width: 100%;
  max-width: 580px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* 
   INPUTS / SELECTS COMPARTIDOS
   Cubre tanto inputs directos en <form> (hotelero)
   como los dentro de .form-grid (turístico)
   ─ */

form input,
form select,
.select-container select,
.password-container input {
  width: 100%;
  padding: 11px 16px;
  border: 1px solid var(--color-primary);
  border-radius: 20px;
  background-color: #f9f9f9;
  font-size: 14px;
  color: var(--color-text);
  transition: 0.3s;
}

form input::placeholder,
.password-container input::placeholder {
  color: #999;
}

form input:focus,
form select:focus,
.select-container select:focus,
.password-container input:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 8px rgba(234, 130, 23, 0.25);
  background-color: #fff;
}

option {
  background-color: #f9f9f9;
}

/* ── Grid 2 columnas (proveedor turístico) ── */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  width: 100%;
}

/* ── Select con flecha personalizada ── */
.select-container {
  position: relative;
  width: 100%;
}

.select-container select {
  appearance: none;
  -webkit-appearance: none;
  color: var(--color-text);
}

.select-container select:focus {
  color: var(--color-text);
}

.select-container::after {
  content: "▼";
  font-size: 11px;
  color: var(--color-secondary);
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

/* ── Campo contraseña ── */
.password-container {
  position: relative;
  width: 100%;
}

.password-container input {
  padding-right: 40px; /* espacio para el ícono */
}

.password-container i {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: #555;
  cursor: pointer;
  transition: color 0.3s;
}

.password-container i:hover {
  color: var(--color-secondary);
}

/* ── Error contraseñas ── */
.error-msg {
  font-size: 11px;
  color: #e74c3c;
  grid-column: span 2;
  padding-left: 10px;
  margin-top: -4px;
}

.input-error {
  border-color: #e74c3c !important;
  box-shadow: 0 0 8px rgba(231, 76, 60, 0.25) !important;
}

/* ── Botón naranja ── */
button {
  width: 85%;
  max-width: 340px;
  background-color: var(--color-secondary);
  color: var(--color-white);
  border: none;
  border-radius: 20px;
  padding: 11px 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 6px;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
  box-shadow: 0 6px 20px rgba(234, 130, 23, 0.3);
}

button:hover {
  background-color: #d4711a;
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(234, 130, 23, 0.4);
}

/* ── Imagen lado derecho ── */
.image-section {
  width: 380px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.image-section img {
  width: 100%;
  height: 250%;
  object-fit: cover;
  border-radius: 0 25px 25px 0;
  transition: transform 0.5s ease;
}

.image-section img:hover {
  transform: scale(1.05);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  body {
    padding: 20px 15px;
  }

  .login-box {
    flex-direction: column;
    max-height: none;
  }

  .form-section {
    padding: 30px 20px;
  }

  .image-section {
    width: 100%;
    height: 220px;
    flex-shrink: 1;
  }

  .image-section img {
    height: 220px;
    border-radius: 0 0 25px 25px;
  }
}

@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .error-msg {
    grid-column: span 1;
  }
}