/* =========== RESET SIMPLE =========== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #111;
  color: #fff;
}

/* =========== LAYOUT GENERAL =========== */

.page {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Fondo tipo madera opcional */
.page--wood {
  background: #5b3a26 url("../assets/bg-wood.jpg") center/cover no-repeat fixed;
}

.page__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.page__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 24px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========== CARD GENÉRICA =========== */

.card {
  width: 100%;
  background: rgba(20, 20, 20, 0.92);
  border-radius: 24px;
  padding: 24px 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card--login {
  max-width: 340px;
}

/* header / body / actions reutilizables */

.card__header {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

/* =========== LOGO =========== */

.logo {
  max-width: 160px;
  height: auto;
}

/* =========== CAMPOS DE FORMULARIO =========== */

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field__label {
  font-size: 13px;
  color: #ddd;
}

.field__input {
  padding: 10px 14px;
  border-radius: 999px;
  border: none;
  outline: none;
  font-size: 14px;
  background: #f4f4f4;
  color: #222;
}

.field__input::placeholder {
  color: #888;
}

/* =========== BOTONES =========== */

.btn {
  border: none;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease, opacity 0.1s ease;
}

.btn--primary {
  background: #ff7a00;
  color: #fff;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}

.btn--secondary {
  background: #ffffff;
  color: #222;
}

.btn:active {
  transform: translateY(1px);
  box-shadow: 0 3px 7px rgba(0, 0, 0, 0.4);
}

/* =========== RESPONSIVE PEQUEÑO =========== */

@media (max-width: 360px) {
  .card {
    padding: 18px 14px;
  }

  .logo {
    max-width: 140px;
  }
}
