/* Auth Modal Styles */
.auth-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.auth-modal.show {
  display: flex;
  opacity: 1;
}

.auth-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(5px);
}

.auth-modal-container {
  position: relative;
  background: white;
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
  z-index: 1;
}

.auth-modal.show .auth-modal-container {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(221, 14, 26, 0.1);
  border: none;
  border-radius: 50%;
  color: #dd0e1a;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.modal-close:hover {
  background: #dd0e1a;
  color: white;
  transform: rotate(90deg);
}

.auth-form-wrapper {
  padding: 50px 40px 40px;
}

.auth-form-wrapper.hidden {
  display: none;
}

.auth-form-wrapper h2 {
  font-size: 28px;
  color: #3a2815;
  margin-bottom: 30px;
  text-align: center;
  font-weight: 700;
  letter-spacing: 1px;
}

.auth-form {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #3a2815;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 15px;
  color: #333;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #d4af37;
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  flex-wrap: wrap;
  gap: 10px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #666;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #d4af37;
}

.forgot-password {
  font-size: 14px;
  color: #d4af37;
  text-decoration: none;
  transition: color 0.3s ease;
}

.forgot-password:hover {
  color: #3a2815;
  text-decoration: underline;
}

.auth-submit-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #d4af37 0%, #f4e5b0 50%, #d4af37 100%);
  color: #3a2815;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
  text-transform: uppercase;
}

.auth-submit-btn:hover {
  background: linear-gradient(135deg, #f4e5b0 0%, #d4af37 50%, #f4e5b0 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.auth-submit-btn:active {
  transform: translateY(0);
}

.form-footer {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

.form-footer p {
  font-size: 14px;
  color: #666;
}

.form-footer a {
  color: #d4af37;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.form-footer a:hover {
  color: #3a2815;
  text-decoration: underline;
}

/* Error Messages */
.error-message {
  color: #dd0e1a;
  font-size: 13px;
  margin-top: 5px;
  display: block;
}

.form-group.error input,
.form-group.error textarea {
  border-color: #dd0e1a;
}

/* Success Message */
.success-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #4caf50, #66bb6a);
  color: white;
  padding: 16px 24px;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.3s ease;
  z-index: 10001;
  font-weight: 500;
}

.success-notification.show {
  opacity: 1;
  transform: translateY(0);
}

.success-notification svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .auth-modal-container {
    max-width: 95%;
    max-height: 95vh;
  }

  .auth-form-wrapper {
    padding: 40px 25px 30px;
  }

  .auth-form-wrapper h2 {
    font-size: 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .modal-close {
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .auth-form-wrapper {
    padding: 35px 20px 25px;
  }

  .auth-form-wrapper h2 {
    font-size: 22px;
  }

  .form-group input,
  .form-group textarea {
    padding: 12px 14px;
    font-size: 14px;
  }

  .auth-submit-btn {
    padding: 14px;
    font-size: 15px;
  }

  .success-notification {
    top: 10px;
    right: 10px;
    left: 10px;
    font-size: 14px;
  }
}
