:root {
  --primary-color: #fb8e2e;
  --secondary-color: #1e1e1e;
  /* --font-family: "Century Gothic"; */
  --font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --thertiary-color: #d9d9d9;
  --quaternary-color: #a4a4a4;
  --sextenary-color: #ffffff;
  --sevenary-color: #f4f4f4;
  --app-radius: 15px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("../img/hombre-moderno-que-se-opone-la-musica-que-escucha-de-la-pared-en-el-libro-de-lectura-del-auricular1.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  max-width: 100%;
}

.auth-container {
  background: white;
  border-radius: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: visible;
  max-width: 1000px;
  width: 100%;
  display: flex;
  min-height: 600px;
  position: relative;
}

.auth-left {
  flex: 1;
  /* background: linear-gradient(135deg, #4361ee 0%, #7209b7 100%); */
  background: var(--primary-color);
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: white;

  border-bottom-left-radius: 30px;
  border-top-left-radius: 30px;
}

.auth-left h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.auth-left p {
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: 0.95;
}

.tagline {
  justify-content: center;
  text-align: center;
}

.auth-left .features {
  margin-top: 40px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.feature i {
  font-size: 1.5rem;
}

.auth-right {
  flex: 1;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-header {
  text-align: center;
  margin-bottom: 40px;
}

.auth-header h2 {
  color: var(--secondary-color);
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.auth-header p {
  color: var(--secondary-color);
}

.form-group {
  margin-bottom: 25px;
}

label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-weight: 500;
}

input {
  width: 100%;
  padding: 15px;
  border: 2px solid #e0e0e0;
  border-radius: var(--app-radius);
  font-size: 1rem;
  transition: border-color 0.3s;
}

input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.btn {
  width: 100%;
  padding: 15px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--app-radius);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s;
  margin-top: 15px;
  font-family: var(--font-family);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.toggle-auth {
  text-align: center;
  margin-top: 40px;
  color: var(--quaternary-color);
}

.toggle-auth a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.toggle-auth a:hover {
  text-decoration: underline;
}

.error-message {
  background: #fee;
  color: #c33;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: none;
}

.success-message {
  background: #efe;
  color: #3c3;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: none;
}

@media (max-width: 768px) {
  .auth-container {
    flex-direction: column;
  }

  .auth-left {
    padding: 40px 30px;

    border-top-right-radius: 30px;
    border-bottom-left-radius: 0px;
  }

  .auth-right {
    padding: 40px 30px;
  }
}

.featured-card {
  position: absolute;
  bottom: -70px;
  /* bottom: -150px; */
  left: 50%;
  transform: translateX(-95%); /* centra entre auth-left y auth-right */
  z-index: 9999;

  width: 440px;
  padding: 22px 26px;

  background: var(--secondary-color);
  color: #fff;
  border-radius: 18px;

  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.45),
    0 10px 20px rgba(0, 0, 0, 0.35);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.featured-card-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--primary-color);
  /* text-transform: uppercase; */
}

.featured-card-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  margin-top: 6px;
}

.featured-card-subtitle {
  margin-top: 6px;
  font-size: 14px;
  color: #bdbdbd;
}

.featured-card-books {
  display: flex;
  gap: -10px;
}

.featured-card-books img {
  width: 54px;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.5);
}

.featured-card-books img:not(:first-child) {
  margin-left: -12px;
}

@media (max-width: 768px) {
  .featured-card {
    position: static;
    transform: none;
    width: 100%;
    margin: 20px auto 0;
  }

  .featured-card:hover {
    transform: none;
  }
}


.icon-spin {
  animation: spin 2.5s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.icon-bounce {
  animation: bounce 2.8s ease-in-out infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.icon-pulse {
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.12);
    opacity: 1;
  }
}

.password-toggle {
  cursor: pointer;
  color: #6c757d;

  z-index: 5;
}

.password-toggle:hover {
  color: #e37c7d;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 52px; 
}

.password-field .password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;

  transform: translateY(-50%);

  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 12px;
  background-color: rgba(0, 0, 0, 0);
}

.password-field .password-toggle i {
  transition: transform 0.2s ease;
  will-change: transform;
}

.password-field .password-toggle:hover {
  background-color: rgba(251, 142, 46, 0.12);
}

.password-field .password-toggle:hover i {
  transform: scale(1.06);
}

.password-field input:focus + .password-toggle,
.password-field .password-toggle:focus {
  outline: none;
  background-color: rgba(251, 142, 46, 0.18);
}

.password-field .password-toggle:active {
  background-color: rgba(251, 142, 46, 0.22);
}

.password-field .password-toggle:active i {
  transform: scale(0.98);
}
