@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

body.auth-bg {
  min-height: 100vh;
  background: linear-gradient(120deg, #b6f5d8 0%, #f7c6d6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
}

.auth-container {
  width: 100vw;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.auth-card {
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 8px 32px rgba(50, 50, 93, 0.08), 0 1.5px 4px rgba(50, 50, 93, 0.08);
  padding: 2.5rem 2rem 2rem 2rem;
  max-width: 400px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: fadeIn 0.7s cubic-bezier(.4,0,.2,1);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: none; }
}

.auth-title {
  font-size: 2rem;
  font-weight: 600;
  color: #3a7c6b;
  text-align: center;
  margin: 0 0 1rem 0;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.auth-field label {
  font-size: 1rem;
  color: #3a7c6b;
  font-weight: 500;
  margin: 0;
}

.auth-input-wrapper {
  display: flex;
  align-items: center;
  background: #f7f7fa;
  border-radius: 0.8rem;
  padding: 0.8rem 1rem;
  box-shadow: 0 1px 2px rgba(50,50,93,0.04);
  transition: box-shadow 0.2s;
  border: 2px solid transparent;
}

.auth-input-wrapper:focus-within {
  box-shadow: 0 2px 8px #b6f5d8;
  border-color: #b6f5d8;
}

.auth-input-wrapper i {
  color: #b14e6a;
  font-size: 1.2rem;
  margin-right: 0.7rem;
  flex-shrink: 0;
}

.auth-input-wrapper input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 1rem;
  flex: 1;
  padding: 0;
  color: #222;
  width: 100%;
}

.auth-input-wrapper input::placeholder {
  color: #999;
}

.auth-btn {
  background: linear-gradient(90deg, #b14e6a 0%, #3a7c6b 100%);
  color: #fff;
  border: none;
  border-radius: 0.8rem;
  padding: 1rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px #b6f5d8;
  transition: all 0.2s ease;
  width: 100%;
  text-align: center;
  display: block;
}

.auth-btn:hover, .auth-btn:focus {
  background: linear-gradient(90deg, #3a7c6b 0%, #b14e6a 100%);
  box-shadow: 0 4px 16px #b6f5d8;
  transform: translateY(-1px);
}

.auth-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.auth-options {
  display: flex;
  justify-content: flex-end;
  margin: 0.5rem 0;
}

.forgot-link {
  color: #b14e6a;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s;
}

.forgot-link:hover {
  color: #3a7c6b;
}

.auth-footer {
  text-align: center;
  font-size: 0.98rem;
  color: #888;
  margin-top: 0.5rem;
}

.auth-footer a {
  color: #3a7c6b;
  text-decoration: none;
  font-weight: 500;
  margin-left: 0.2rem;
  transition: color 0.2s;
}

.auth-footer a:hover {
  color: #b14e6a;
}

.auth-response {
  text-align: center;
  padding: 0.8rem;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  margin-top: 0.5rem;
  min-height: 1.2rem;
}

/* Register user type toggle */
.register-user-type-label {
  font-size: 1.1rem;
  color: #3a7c6b;
  text-align: center;
  margin-bottom: 1rem;
  font-weight: 500;
}

.register-user-type-toggle {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.user-type-option {
  background: #f7f7fa;
  border-radius: 1rem;
  box-shadow: 0 1px 4px #b6f5d8;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  font-size: 1rem;
  font-weight: 500;
  flex: 1;
  max-width: 140px;
  justify-content: center;
}

.user-type-option input[type="radio"] {
  display: none;
}

.user-type-option .user-type-icon {
  font-size: 1.5rem;
  color: #b14e6a;
}

.user-type-option .emoji {
  font-size: 1.2rem;
  margin-left: 0.2rem;
}

.user-type-option:has(input[type="radio"]:checked) {
  border: 2px solid #b14e6a;
  box-shadow: 0 2px 8px #b6f5d8;
  background: #fff0f6;
}

/* Register steps */
.register-step {
  animation: fadeIn 0.6s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Password visibility toggle */
.password-wrapper {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #b14e6a;
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 2;
}

.password-toggle:hover {
  color: #3a7c6b;
}

.optional {
  color: #999;
  font-size: 0.9rem;
  font-weight: 400;
}

/* Congrats modal */
.congrats-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.congrats-card {
  background: #fff;
  border-radius: 1.5rem;
  padding: 2.5rem 2rem;
  text-align: center;
  max-width: 350px;
  width: 90%;
  box-shadow: 0 8px 32px rgba(50, 50, 93, 0.15);
}

.congrats-icon {
  font-size: 4rem;
  color: #3a7c6b;
  margin-bottom: 1rem;
}

.congrats-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #3a7c6b;
  margin-bottom: 0.5rem;
}

.congrats-msg {
  color: #666;
  font-size: 1rem;
}

/* Verify page */
.verify-card {
  text-align: center;
}

.verify-icon {
  font-size: 3rem;
  color: #3a7c6b;
  margin-bottom: 1rem;
}

.verify-msg {
  color: #666;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

#verifyEmail {
  font-weight: 600;
  color: #3a7c6b;
}

#resendBtn {
  margin-top: 1rem;
}

#changeEmailLink {
  color: #b14e6a;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

#changeEmailLink:hover {
  color: #3a7c6b;
}

/* Responsive */
@media (max-width: 500px) {
  .auth-card {
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    max-width: 100%;
  }
  
  .auth-title {
    font-size: 1.8rem;
  }
  
  .register-user-type-toggle {
    flex-direction: column;
    gap: 0.8rem;
  }
  
  .user-type-option {
    max-width: none;
  }
  
  .congrats-card {
    padding: 2rem 1.5rem;
  }
  
  .verify-card {
    padding: 2rem 1.5rem;
  }
} 

/* Enhanced Mobile Responsive Styles */
@media (max-width: 768px) {
  .auth-container {
    padding: 1rem;
    min-height: 100vh;
  }
  
  .auth-card {
    padding: 2rem 1.5rem;
    max-width: 100%;
    margin: 1rem auto;
    border-radius: 1.5rem;
  }
  
  .auth-title {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
  }
  
  .auth-field {
    margin-bottom: 1.2rem;
  }
  
  .auth-field label {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
  }
  
  .auth-input-wrapper {
    padding: 0.8rem 1rem;
    border-radius: 1rem;
  }
  
  .auth-input-wrapper input {
    font-size: 1rem;
    padding: 0.5rem 0;
  }
  
  .auth-btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: 1rem;
    margin-top: 1rem;
  }
  
  .auth-options {
    margin-top: 1.5rem;
    gap: 1rem;
  }
  
  .forgot-link {
    font-size: 0.9rem;
  }
  
  .auth-footer {
    margin-top: 2rem;
    gap: 1rem;
  }
  
  .auth-footer a {
    font-size: 0.95rem;
    padding: 0.8rem 1.5rem;
  }
  
  .register-user-type-toggle {
    flex-direction: column;
    gap: 0.8rem;
  }
  
  .user-type-option {
    max-width: none;
    padding: 1rem;
    font-size: 0.95rem;
  }
  
  .user-type-option .user-type-icon {
    font-size: 1.3rem;
  }
  
  .password-toggle {
    right: 0.8rem;
    font-size: 1.1rem;
  }
  
  .congrats-card {
    padding: 2rem 1.5rem;
    max-width: 90%;
  }
  
  .congrats-icon {
    font-size: 3rem;
  }
  
  .congrats-title {
    font-size: 1.3rem;
  }
  
  .congrats-msg {
    font-size: 0.95rem;
  }
  
  .verify-card {
    padding: 2rem 1.5rem;
  }
  
  .verify-icon {
    font-size: 2.5rem;
  }
  
  .verify-msg {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .auth-container {
    padding: 0.8rem;
  }
  
  .auth-card {
    padding: 1.5rem 1.2rem;
    margin: 0.5rem auto;
    border-radius: 1.2rem;
  }
  
  .auth-title {
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
  }
  
  .auth-field {
    margin-bottom: 1rem;
  }
  
  .auth-field label {
    font-size: 0.9rem;
  }
  
  .auth-input-wrapper {
    padding: 0.7rem 0.8rem;
    border-radius: 0.8rem;
  }
  
  .auth-input-wrapper input {
    font-size: 0.95rem;
  }
  
  .auth-btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
    border-radius: 0.8rem;
  }
  
  .auth-options {
    margin-top: 1.2rem;
    gap: 0.8rem;
  }
  
  .forgot-link {
    font-size: 0.85rem;
  }
  
  .auth-footer {
    margin-top: 1.5rem;
    gap: 0.8rem;
  }
  
  .auth-footer a {
    font-size: 0.9rem;
    padding: 0.7rem 1.2rem;
  }
  
  .register-user-type-label {
    font-size: 1rem;
  }
  
  .user-type-option {
    padding: 0.8rem;
    font-size: 0.9rem;
  }
  
  .user-type-option .user-type-icon {
    font-size: 1.2rem;
  }
  
  .password-toggle {
    right: 0.6rem;
    font-size: 1rem;
  }
  
  .congrats-card {
    padding: 1.5rem 1.2rem;
    max-width: 95%;
  }
  
  .congrats-icon {
    font-size: 2.5rem;
  }
  
  .congrats-title {
    font-size: 1.2rem;
  }
  
  .congrats-msg {
    font-size: 0.9rem;
  }
  
  .verify-card {
    padding: 1.5rem 1.2rem;
  }
  
  .verify-icon {
    font-size: 2rem;
  }
  
  .verify-msg {
    font-size: 0.9rem;
  }
  
  #resendBtn {
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
  }
  
  #changeEmailLink {
    font-size: 0.9rem;
  }
}

@media (max-width: 360px) {
  .auth-card {
    padding: 1.2rem 1rem;
    border-radius: 1rem;
  }
  
  .auth-title {
    font-size: 1.3rem;
  }
  
  .auth-input-wrapper {
    padding: 0.6rem 0.7rem;
  }
  
  .auth-btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .user-type-option {
    padding: 0.7rem;
    font-size: 0.85rem;
  }
  
  .congrats-card,
  .verify-card {
    padding: 1.2rem 1rem;
  }
}

/* Landscape orientation for mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .auth-container {
    padding: 0.5rem;
  }
  
  .auth-card {
    padding: 1.5rem;
    margin: 0.5rem auto;
  }
  
  .auth-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
  }
  
  .auth-field {
    margin-bottom: 0.8rem;
  }
  
  .auth-btn {
    padding: 0.8rem 1.5rem;
  }
  
  .auth-footer {
    margin-top: 1rem;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .auth-card {
    box-shadow: 0 4px 32px rgba(50, 50, 93, 0.12);
  }
  
  .auth-input-wrapper {
    border-width: 1.5px;
  }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .auth-card {
    animation: none;
  }
  
  .auth-input-wrapper,
  .auth-btn,
  .user-type-option {
    transition: none;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .auth-bg {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  }
  
  .auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
  }
  
  .auth-input-wrapper {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(177, 78, 106, 0.3);
  }
  
  .auth-input-wrapper:focus-within {
    border-color: #b14e6a;
    box-shadow: 0 0 0 3px rgba(177, 78, 106, 0.1);
  }
} 