/* ============================================
   AUTHENTICATION STYLES (LOGIN/REGISTER)
   ============================================ */

/* Page Background */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--color-navy);
  /* We use the hero image pattern as a subtle background */
  background-image: linear-gradient(rgba(26, 26, 46, 0.9), rgba(26, 26, 46, 0.95)), url('../images/teatropolis/hero/hero-main-1200w.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Auth Navigation */
.auth-nav {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  z-index: 10;
}

.back-link {
  color: var(--color-cream);
  text-decoration: none;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.8;
  transition: var(--transition-smooth);
}

.back-link:hover {
  color: var(--color-teal);
  opacity: 1;
  transform: translateX(-5px);
}

/* Main Container */
.auth-container {
  width: 100%;
  max-width: 480px;
  padding: 2rem;
  z-index: 2;
  animation: fadeInUp 0.8s ease forwards;
}

/* Glassmorphism Card */
.auth-card {
  background: rgba(26, 26, 46, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(93, 173, 166, 0.2);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 40px rgba(93, 173, 166, 0.1);
}

/* Logo specific adjustments for Auth */
.auth-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 2.5rem;
}

/* Headers */
.auth-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.auth-title {
  font-family: var(--font-display);
  color: var(--color-cream);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.auth-subtitle {
  color: var(--color-teal);
  font-size: 1rem;
  letter-spacing: 1px;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.8rem;
}

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  color: var(--color-cream);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.forgot-link {
  color: var(--color-teal);
  font-size: 0.8rem;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.forgot-link:hover {
  color: var(--color-gold);
}

/* Input Wrappers */
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 1.2rem;
  color: var(--color-teal);
  opacity: 0.7;
  font-size: 1rem;
}

.form-control {
  width: 100%;
  background: rgba(10, 10, 20, 0.5);
  border: 1px solid rgba(93, 173, 166, 0.3);
  border-radius: 8px;
  padding: 1rem 1rem 1rem 3rem;
  color: var(--color-cream);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.3s ease;
}

/* Override placeholder color */
.form-control::placeholder {
  color: rgba(246, 245, 235, 0.4);
}

/* Focus state */
.form-control:focus {
  outline: none;
  border-color: var(--color-gold);
  background: rgba(10, 10, 20, 0.8);
  box-shadow: 0 0 10px rgba(254, 218, 106, 0.1);
}

.form-control:focus + .input-icon, 
.input-wrapper:focus-within .input-icon {
  color: var(--color-gold);
  opacity: 1;
}

/* Password Toggle Button */
.toggle-password {
  position: absolute;
  right: 1rem;
  background: none;
  border: none;
  color: var(--color-cream);
  opacity: 0.5;
  cursor: pointer;
  padding: 0.5rem;
  transition: var(--transition-smooth);
}

.toggle-password:hover {
  opacity: 1;
  color: var(--color-teal);
}

.toggle-password:focus {
  outline: none;
}

/* Submit Button */
.auth-submit {
  width: 100%;
  margin-top: 1rem;
  padding: 1.1rem;
  font-size: 1.1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

/* Footer Links */
.auth-footer {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(246, 245, 235, 0.7);
}

.highlight-link {
  color: var(--color-gold);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.highlight-link:hover {
  color: var(--color-cream);
  text-decoration: underline;
}

/* Keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive constraints */
@media (max-width: 480px) {
  .auth-card {
    padding: 2.5rem 1.5rem;
    border: none; /* Flatten on small devices */
    background: rgba(26, 26, 46, 0.8); /* Slightly darker, less transparent */
  }
  
  .auth-title {
    font-size: 2rem;
  }
  
  .auth-nav {
    padding: 1.5rem;
  }
}
