/* Variables de colores basadas en la paleta proporcionada */
:root {
  --tricorn-black: #2d2d2d;
  --sconce-gold: #a67c2e;
  --in-the-navy: #1f3a4d;
  --essential-gray: #e5e2d9;
  --white: #ffffff;
  --black: #000000;
  --gold-light: #d4b254;
  --navy-light: #2f5775;
  --gray-dark: #aeada3;
  --error-red: #e74c3c;
  --success-green: #2ecc71;
}

/* Reset y estilos generales */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--tricorn-black);
  background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  color: var(--in-the-navy);
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* Estilos para páginas de autenticación */
.auth-container {
  display: flex;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.auth-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.auth-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-background .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(31, 58, 77, 0.9) 0%, rgba(45, 45, 45, 0.8) 100%);
}

.auth-content {
  width: 100%;
  max-width: 500px;
  margin: auto;
  padding: 40px;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.5s ease;
}

.auth-content.show {
  transform: translateY(0);
  opacity: 1;
}

.auth-header {
  text-align: center;
  margin-bottom: 30px;
}

.auth-logo {
  display: inline-block;
  margin-bottom: 20px;
}

.auth-logo img {
  height: 60px;
}

.auth-header h1 {
  font-size: 32px;
  margin-bottom: 10px;
  color: var(--in-the-navy);
}

.auth-header p {
  color: var(--tricorn-black);
}

.auth-form {
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--in-the-navy);
}

.form-group small.error-text {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: var(--error-red);
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon i {
  position: absolute;
  left: 15px;
  color: var(--gray-dark);
}

.input-with-icon input {
  width: 100%;
  padding: 12px 15px 12px 45px;
  border: 1px solid var(--gray-dark);
  border-radius: 5px;
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  transition: all 0.3s ease;
}

.input-with-icon input:focus {
  border-color: var(--sconce-gold);
  box-shadow: 0 0 0 2px rgba(166, 124, 46, 0.2);
  outline: none;
}

/* CORRECCIÓN: Alineación del botón de mostrar/ocultar contraseña */
.toggle-password {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--gray-dark);
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s ease;
  height: 24px;
  width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.toggle-password:hover {
  color: var(--in-the-navy);
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.remember-me {
  display: flex;
  align-items: center;
}

.remember-me input[type="checkbox"] {
  margin-right: 8px;
  width: 18px;
  height: 18px;
  accent-color: var(--sconce-gold);
}

.forgot-password {
  color: var(--in-the-navy);
  font-size: 14px;
  transition: all 0.3s ease;
}

.forgot-password:hover {
  color: var(--sconce-gold);
}

.auth-button {
  width: 100%;
  padding: 14px;
  background-color: var(--sconce-gold);
  color: var(--white);
  border: none;
  border-radius: 5px;
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.auth-button:hover {
  background-color: var(--gold-light);
  transform: translateY(-2px);
}

.admin-login-hint {
  margin-top: 20px;
  padding: 15px;
  background-color: rgba(31, 58, 77, 0.1);
  border-radius: 5px;
  font-size: 14px;
}

.admin-login-hint p {
  margin-bottom: 5px;
}

.auth-footer {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--essential-gray);
}

.auth-footer p {
  font-size: 14px;
}

.auth-footer a {
  color: var(--sconce-gold);
  font-weight: 500;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* Mensajes de éxito y error */
.success-message,
.error-message {
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  animation: fadeIn 0.3s ease-in-out;
}

.success-message {
  background-color: rgba(46, 204, 113, 0.1);
  border: 1px solid var(--success-green);
  color: var(--success-green);
}

.error-message {
  background-color: rgba(231, 76, 60, 0.1);
  border: 1px solid var(--error-red);
  color: var(--error-red);
}

.success-message i,
.error-message i {
  font-size: 20px;
  margin-right: 10px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Styles */
@media (max-width: 768px) {
  .auth-content {
    max-width: 90%;
    padding: 30px;
  }

  .auth-header h1 {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .auth-content {
    max-width: 95%;
    padding: 20px;
  }

  .auth-header h1 {
    font-size: 24px;
  }

  .auth-logo img {
    height: 50px;
  }

  .input-with-icon input {
    padding: 10px 15px 10px 40px;
    font-size: 14px;
  }

  .auth-button {
    padding: 12px;
  }

  .form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}