/* Fondo general */
body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: linear-gradient(135deg, #ff9d2f, #ffcc80);
  height: 100vh;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Contenedor principal */
.container {
  width: 100%;
  max-width: 420px;
  position: relative;
}

/* Botón Atrás */
.back-btn {
  position: absolute;
  top: -40px;
  left: 0;
}

.back-btn a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: 0.3s;
}

.back-btn a:hover {
  opacity: 0.8;
}

/* Tarjeta de login */
.card {
  background: #fff;
  padding: 2rem;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  text-align: center;
}

h1 {
  color: #ff7b00;
  margin-bottom: 0.5rem;
}

.lead {
  color: #555;
  margin-bottom: 1.8rem;
  font-size: 0.95rem;
}

/* Campos */
.field {
  margin-bottom: 1.2rem;
}

.icon-field {
  position: relative;
}

.icon-field i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #aaa;
}

.icon-field input {
  width: 100%;
  padding: 12px 12px 12px 38px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
  transition: 0.3s;
}

.icon-field input:focus {
  border-color: #ff7b00;
  outline: none;
}

/* Botón */
.btn {
  width: 100%;
  background: #ff7b00;
  border: none;
  color: white;
  font-weight: bold;
  padding: 12px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s;
}

.btn:hover {
  background: #e46d00;
}

/* Resultado del login */
#result {
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.95rem;
}

/* Adaptabilidad móvil */
@media (max-width: 480px) {
  .card {
    padding: 1.5rem;
  }
  .back-btn {
    top: -30px;
  }
}
