/* Auth Dialog Styles */

/* Dialog Overlay */
.auth-dialog .dialog-overlay,
.forgot-password-dialog .dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.forgot-password-dialog .dialog-overlay {
  z-index: 10001;
}

/* Dialog Content */
.auth-dialog-content,
.forgot-password-content {
  background: white;
  border-radius: 12px;
  padding: 30px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  position: relative;
}

/* Close Button */
.auth-dialog .close-btn,
.forgot-password-dialog .close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.auth-dialog .close-btn:hover,
.forgot-password-dialog .close-btn:hover {
  background: #f8f9fa;
  color: #333;
}

/* Auth Tabs */
.auth-tabs {
  margin-bottom: 20px;
}

.tab-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  margin-right: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.tab-btn:not(.active) {
  background: #f8f9fa;
  color: #666;
}

.tab-btn.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

/* Form Groups */
.form-group {
  margin-bottom: 15px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #333;
}

.forgot-password-dialog .form-group {
  margin-bottom: 20px;
}

.forgot-password-dialog .form-group label {
  margin-bottom: 8px;
  font-size: 16px;
}

/* Form Inputs */
.auth-dialog input[type="email"],
.auth-dialog input[type="text"],
.auth-dialog input[type="password"],
.forgot-password-dialog input[type="email"] {
  width: 100%;
  padding: 12px;
  border: 2px solid #e0e6ed;
  border-radius: 8px;
  font-size: 16px;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

.auth-dialog input:focus,
.forgot-password-dialog input:focus {
  outline: none;
  border-color: #667eea;
}

/* Forgot Password Link */
.forgot-password {
  text-align: right;
  margin-bottom: 15px;
}

.forgot-password-btn {
  background: none;
  border: none;
  color: #667eea;
  cursor: pointer;
  text-decoration: underline;
  font-size: 14px;
  padding: 0;
}

.forgot-password-btn:hover {
  color: #5a6fd8;
}

/* Messages */
.info-message {
  color: #28a745;
  background: #d4edda;
  border: 1px solid #c3e6cb;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 15px;
  font-size: 14px;
  text-align: center;
}

.error-message {
  color: #dc3545;
  margin-bottom: 15px;
  font-size: 14px;
  display: none;
}

.success-message {
  color: #28a745;
  background: #d4edda;
  border: 1px solid #c3e6cb;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 15px;
  font-size: 14px;
  text-align: center;
  display: none;
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.submit-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  min-width: 120px;
  transition: transform 0.2s ease;
}

.submit-btn:hover {
  transform: scale(1.05);
}

.forgot-password-dialog .submit-btn {
  min-width: 140px;
}

.cancel-btn {
  background: #6c757d;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  min-width: 120px;
  transition: transform 0.2s ease;
}

.cancel-btn:hover {
  transform: scale(1.05);
}

/* Guest Option */
.guest-option {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e0e6ed;
}

.guest-option p {
  margin: 0 0 10px 0;
  color: #666;
  font-size: 14px;
}

.guest-btn {
  background: transparent;
  color: #667eea;
  border: 2px solid #667eea;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  font-weight: 500;
}

.guest-btn:hover {
  background: #667eea;
  color: white;
}

/* Forgot Password Dialog Specific */
.forgot-password-dialog h2 {
  color: #333;
  margin: 0 0 10px 0;
  font-size: 24px;
}

.forgot-password-dialog p {
  color: #666;
  margin: 0 0 20px 0;
  font-size: 16px;
}

/* Dynamic State Classes */
.input-focused {
  border-color: #667eea !important;
}

.input-blurred {
  border-color: #e0e6ed !important;
}

.message-visible {
  display: block !important;
}

.message-hidden {
  display: none !important;
}

.form-section-hidden {
  display: none !important;
}

/* Utility Classes */
.hidden {
  display: none !important;
}

.visible {
  display: block !important;
}

.text-center {
  text-align: center;
}

/* Agreement Checkboxes */
.agreements-section {
  margin: 20px 0;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.agreement-item {
  margin-bottom: 12px;
}

.agreement-item:last-child {
  margin-bottom: 0;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
  color: #495057;
}

.checkbox-label input[type="checkbox"] {
  margin-right: 10px;
  margin-top: 2px;
  flex-shrink: 0;
}

.checkbox-label a {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
}

.checkbox-label a:hover {
  color: #5a6fd8;
  text-decoration: underline;
}

/* Custom checkbox styling */
.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #667eea;
}

/* Agreement validation styling */
.agreements-section.invalid {
  border-color: #dc3545;
  background: #f8d7da;
}

.agreements-section.invalid .checkbox-label {
  color: #721c24;
}