/* ==========================================================================
   auth.css - Estilos Premium para Autenticación, Registro y Mi Cuenta
   Marian Estilista
   ========================================================================== */

/* Botón de Acceso en el Header */
.auth-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--color-brown-dark, #2b2219);
  padding: 7px 14px;
  border-radius: var(--radius-full, 999px);
  background-color: var(--color-champagne, #f5efe6);
  border: 1px solid var(--color-beige, #e6dbc9);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.auth-nav-link:hover {
  background-color: #2b2219;
  color: #fffdf8;
  border-color: #2b2219;
  transform: translateY(-1px);
}

.user-nav-dropdown {
  position: relative;
  display: inline-block;
}

.user-nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #2b2219;
  padding: 7px 14px;
  border-radius: 999px;
  background-color: #f7f1e7;
  border: 1px solid #dfd3be;
  cursor: pointer;
  transition: all 0.25s ease;
}

.user-nav-trigger:hover {
  background-color: #ece0cd;
}

.user-nav-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  border: 1px solid #eae0d0;
  padding: 8px 0;
  z-index: 1000;
  animation: fadeInDown 0.2s ease forwards;
}

.user-nav-dropdown.active .user-nav-menu {
  display: block;
}

.user-nav-menu-header {
  padding: 10px 16px 8px;
  border-bottom: 1px solid #f0e8dc;
}

.user-nav-menu-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: #2b2219;
}

.user-nav-menu-email {
  font-size: 0.78rem;
  color: #7b6f63;
  margin-top: 2px;
}

.user-nav-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: #3b3024;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s ease;
  width: 100%;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
}

.user-nav-menu-item:hover {
  background-color: #faf5ed;
  color: #a17522;
}

.user-nav-menu-item.logout {
  color: #b33939;
  border-top: 1px solid #f0e8dc;
  margin-top: 4px;
}

.user-nav-menu-item.logout:hover {
  background-color: #fdf2f2;
}

/* ==========================================================================
   PÁGINAS DE AUTENTICACIÓN (LOGIN, REGISTRO & RECUPERACIÓN)
   Marian Estilista - Estética Oscura, Natural y Elegante
   ========================================================================== */

.auth-page-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #120A07;
  background-image: 
    linear-gradient(135deg, rgba(18, 10, 7, 0.76) 0%, rgba(33, 20, 14, 0.68) 50%, rgba(18, 10, 7, 0.85) 100%),
    url('../../assets/fondo_login.webp');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.auth-main-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth-card {
  width: 100%;
  max-width: 470px;
  background: rgba(253, 250, 246, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  padding: 42px 38px;
  box-shadow:
    0 25px 60px rgba(18, 10, 7, 0.50),
    0 8px 20px rgba(18, 10, 7, 0.25);
  border: 1px solid rgba(197, 168, 128, 0.45);
  animation: authCardFadeUp 0.4s ease-out forwards;
  position: relative;
}

@keyframes authCardFadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-card-header {
  text-align: center;
  margin-bottom: 28px;
}

.auth-brand-symbol {
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  background: #21140E;
  color: #FCF9F5;
  font-family: var(--font-serif, "Playfair Display", serif);
  font-size: 28px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid #D98C16;
  box-shadow: 0 6px 18px rgba(18, 10, 7, 0.35);
}

.auth-title {
  font-family: var(--font-serif, "Playfair Display", serif);
  font-size: 1.95rem;
  font-weight: 700;
  color: #21140E;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.auth-subtitle {
  color: #6A5C50;
  font-size: 0.94rem;
  line-height: 1.55;
  margin: 0;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.signup-page .auth-card {
  max-width: 560px;
}

.signup-page .form-row-dual {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.signup-page .form-group-custom,
.signup-page .password-input-wrapper {
  min-width: 0;
}

@media (max-width: 600px) {
  .signup-page {
    min-height: 100svh;
    background-attachment: scroll;
  }

  .signup-page .auth-main-content {
    padding: 24px 16px;
    min-width: 0;
  }

  .signup-page .auth-card {
    padding: 28px clamp(16px, 5vw, 28px);
    border-radius: 16px;
  }

  .signup-page .form-row-dual {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .signup-page .form-input-custom {
    min-width: 0;
    min-height: 48px;
    font-size: 16px;
  }

  .signup-page .auth-title {
    font-size: clamp(1.6rem, 6vw, 1.95rem);
  }

  .signup-page .auth-card-footer {
    line-height: 1.6;
  }
}

.form-group-custom {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group-custom label {
  font-size: 0.86rem;
  font-weight: 600;
  color: #2A170E;
}

.form-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.form-input-custom {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid #D6C4B3;
  background-color: #FFFFFF;
  font-size: 0.95rem;
  color: #21140E;
  transition: all 0.2s ease;
}

.form-input-custom:focus {
  outline: none;
  border-color: #B36B00;
  box-shadow: 0 0 0 3px rgba(179, 107, 0, 0.18);
  background-color: #FFFFFF;
}

.form-input-custom::placeholder {
  color: #A39585;
}

.forgot-password-link-wrapper {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

.auth-link-text {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.84rem;
  font-weight: 600;
  color: #B36B00;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.auth-link-text:hover {
  color: #D98C16;
  text-decoration: underline;
}

.auth-btn-submit {
  width: 100%;
  padding: 13px 20px;
  border-radius: 10px;
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #21140E 0%, #362218 100%);
  color: #FCF9F5 !important;
  border: 1px solid #D98C16;
  box-shadow: 0 6px 18px rgba(33, 20, 14, 0.30);
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-btn-submit:hover {
  background: linear-gradient(135deg, #D98C16 0%, #B36B00 100%);
  color: #120A07 !important;
  border-color: #D98C16;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(179, 107, 0, 0.35);
}

.auth-btn-back {
  width: 100%;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  background: transparent;
  color: #5C4B43;
  border: 1px solid #D6C4B3;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 6px;
}

.auth-btn-back:hover {
  background: #F7F1E6;
  color: #21140E;
  border-color: #B36B00;
}

.auth-feedback-box {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 0.88rem;
  line-height: 1.5;
  background: #EEF9F2;
  border: 1px solid #B7E5C7;
  color: #1E7E44;
}

.auth-card-footer {
  margin-top: 26px;
  text-align: center;
  font-size: 0.90rem;
  color: #6A5C50;
  border-top: 1px solid rgba(214, 196, 179, 0.4);
  padding-top: 20px;
}

.auth-card-footer a {
  color: #B36B00;
  font-weight: 700;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.auth-card-footer a:hover {
  color: #D98C16;
}


/* Ajustes exclusivos del login en pantallas pequeñas. */
@media (max-width: 768px) {
  .login-page {
    min-height: 100svh;
  }

  .login-page .site-header {
    display: none;
  }

  .login-page .auth-main-content {
    padding: 24px 16px;
    min-width: 0;
  }

  .login-page .auth-card {
    min-width: 0;
    padding: 28px clamp(16px, 5vw, 32px);
    border-radius: 16px;
    overflow-wrap: anywhere;
  }

  .login-page .auth-card-header {
    margin-bottom: 24px;
  }

  .login-page .auth-title {
    font-size: clamp(1.6rem, 6vw, 1.95rem);
    line-height: 1.25;
  }

  .login-page .auth-subtitle {
    font-size: 0.9rem;
  }

  .login-page .form-input-custom {
    min-width: 0;
    min-height: 48px;
    font-size: 16px;
  }

  .login-page .auth-btn-submit,
  .login-page .auth-btn-back {
    min-height: 48px;
    padding: 12px;
    white-space: normal;
    line-height: 1.4;
  }

  .login-page .auth-card-footer {
    margin-top: 22px;
    padding-top: 18px;
    line-height: 1.6;
  }
}

/* ==========================================================================
   PANEL MIS RESERVAS
   ========================================================================== */
.reservas-client-header {
  padding: 40px 0 20px;
  text-align: center;
}

.reservas-client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin: 30px 0 60px;
}

.reserva-client-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid #e8decb;
  box-shadow: 0 6px 18px rgba(43, 34, 25, 0.05);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.reserva-client-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(43, 34, 25, 0.09);
}

.reserva-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.reserva-service-name {
  font-family: var(--font-serif, "Playfair Display", serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: #2b2219;
  margin: 0;
}

.reserva-badge-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-pendiente {
  background: #fff8e6;
  color: #946c00;
  border: 1px solid #ffd885;
}

.status-confirmada {
  background: #eef9f2;
  color: #1e7e44;
  border: 1px solid #b7e5c7;
}

.status-cancelada {
  background: #fdf2f2;
  color: #b33939;
  border: 1px solid #f5c2c2;
}

.status-completada {
  background: #eef2f8;
  color: #275294;
  border: 1px solid #b8cde8;
}

.reserva-meta-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.88rem;
  color: #55483a;
  border-top: 1px solid #f2e9dc;
  padding-top: 12px;
}

.reserva-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reserva-cancel-btn {
  margin-top: 10px;
  width: 100%;
  padding: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #b33939;
  background: transparent;
  border: 1px solid #f0c5c5;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.reserva-cancel-btn:hover {
  background: #b33939;
  color: #ffffff;
}

/* ==========================================================================
   MOSTRAR / OCULTAR CONTRASEÑA (LOGIN & REGISTRO)
   ========================================================================== */
.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.password-input-wrapper .form-input-custom {
  padding-right: 48px;
  width: 100%;
  box-sizing: border-box;
}

.btn-toggle-password {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #7a6e62;
  font-size: 1.15rem;
  transition: all 0.2s ease;
  padding: 0;
  user-select: none;
  outline: none;
  z-index: 2;
}

.btn-toggle-password:hover {
  color: #2b2219;
  background-color: rgba(197, 168, 128, 0.22);
}

.btn-toggle-password:focus-visible {
  outline: 2px solid #a17522;
  outline-offset: 1px;
}

.btn-toggle-password .toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
