/* Authentication Modal Styles */
.auth-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.auth-modal {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  max-width: 400px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.auth-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 24px 0 24px;
  border-bottom: 1px solid #eee;
  margin-bottom: 24px;
}

.auth-modal-title {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.auth-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.auth-modal-close:hover {
  background-color: #f5f5f5;
  color: #666;
}

.auth-modal-body {
  padding: 0 24px 24px 24px;
}

/* Form Styles */
.auth-form {
  width: 100%;
}

.auth-form-group {
  margin-bottom: 20px;
}

.auth-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.auth-form-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: #333;
  font-size: 14px;
}

.auth-form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.auth-form-input:focus {
  outline: none;
  border-color: #76a713;
  box-shadow: 0 0 0 3px rgba(118, 167, 19, 0.1);
}

.auth-form-input.error {
  border-color: #dc3545;
}

.auth-form-input.error:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.auth-form-input:disabled {
  background-color: #f8f9fa;
  cursor: not-allowed;
  opacity: 0.7;
}

.auth-form-error {
  color: #dc3545;
  font-size: 12px;
  margin-top: 4px;
  display: block;
}

.auth-form-submit {
  width: 100%;
  padding: 14px;
  background-color: #76a713;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.auth-form-submit:hover:not(:disabled) {
  background-color: #659610;
}

.auth-form-submit:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  opacity: 0.7;
}

.auth-form-submit.secondary {
  background-color: #6c757d;
  color: white;
}

.auth-form-submit.secondary:hover:not(:disabled) {
  background-color: #5a6268;
}

.auth-form-links {
  text-align: center;
  margin: 16px 0;
}

.auth-form-footer {
  text-align: center;
  margin-top: 20px;
  color: #666;
  font-size: 14px;
}

.auth-link {
  color: #76a713;
  text-decoration: none;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-size: inherit;
}

.auth-link:hover {
  color: #659610;
  text-decoration: underline;
}

.auth-link:disabled {
  color: #ccc;
  cursor: not-allowed;
}

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  margin: 24px 0;
  color: #666;
  font-size: 14px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: #e1e5e9;
}

.auth-divider span {
  padding: 0 16px;
  background: white;
}

/* Error Message */
.auth-error-message {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

/* Success Message */
.auth-success-message {
  text-align: center;
  color: #155724;
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 20px;
}

.auth-success-message i {
  font-size: 48px;
  color: #28a745;
  margin-bottom: 16px;
  display: block;
}

.auth-success-message h3 {
  margin: 0 0 12px 0;
  font-size: 20px;
  font-weight: 600;
}

.auth-success-message p {
  margin: 0;
  line-height: 1.5;
}

/* Form Description */
.auth-form-description {
  margin-bottom: 24px;
  text-align: center;
}

.auth-form-description p {
  color: #666;
  margin: 0;
  line-height: 1.5;
}

/* Email Verification Banner */
.verification-banner {
  background: linear-gradient(135deg, #17a2b8, #138496);
  color: white;
  padding: 0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  overflow: hidden;
}

.verification-banner-content {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  gap: 16px;
}

.verification-banner-icon {
  font-size: 24px;
  color: rgba(255, 255, 255, 0.9);
  flex-shrink: 0;
}

.verification-banner-message {
  flex: 1;
  min-width: 0;
}

.verification-banner-message strong {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
}

.verification-banner-email {
  opacity: 0.9;
  font-size: 14px;
}

.verification-banner-message p {
  margin: 0;
  font-size: 14px;
  opacity: 0.9;
  line-height: 1.4;
}

.verification-banner-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.verification-banner-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.verification-banner-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.25);
}

.verification-banner-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.verification-banner-success {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.verification-banner-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.verification-banner-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

/* Account Verification Section */
.account-verification-section {
  background: white;
  border: 1px solid #e1e5e9;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.account-section-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.verification-status {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.verification-status.verified {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
}

.verification-status.unverified {
  background-color: #fff3cd;
  border: 1px solid #ffeaa7;
}

.verification-status-icon {
  font-size: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.verification-status-content {
  flex: 1;
  min-width: 0;
}

.verification-status-title {
  font-weight: 600;
  font-size: 16px;
  color: #333;
  margin-bottom: 6px;
}

.verification-status-email {
  color: #666;
  font-size: 14px;
  margin-bottom: 12px;
  word-break: break-all;
}

.verification-status-description p {
  margin: 0 0 8px 0;
  color: #666;
  font-size: 14px;
  line-height: 1.5;
}

.verification-status-description p:last-child {
  margin-bottom: 0;
}

.verification-status-actions {
  flex-shrink: 0;
}

.verification-verified-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #155724;
  font-weight: 600;
  font-size: 14px;
}

.verification-actions .btn {
  margin-bottom: 8px;
}

.verification-last-sent {
  font-size: 12px;
  color: #28a745;
  display: flex;
  align-items: center;
}

.verification-help {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
}

.verification-help h4 {
  margin: 0 0 12px 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.verification-help ul {
  margin: 0;
  padding-left: 20px;
  color: #666;
  line-height: 1.6;
}

.verification-help li {
  margin-bottom: 4px;
}

/* Checkout Verification Guard */
.checkout-verification-guard {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.verification-required-card {
  max-width: 600px;
  width: 100%;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  padding: 40px;
  text-align: center;
}

.verification-required-icon {
  font-size: 64px;
  color: #ffc107;
  margin-bottom: 24px;
}

.verification-required-content h2 {
  margin: 0 0 16px 0;
  font-size: 28px;
  font-weight: 700;
  color: #333;
}

.verification-required-content > p {
  font-size: 16px;
  color: #666;
  margin: 0 0 24px 0;
  line-height: 1.6;
}

.verification-email-info {
  background-color: #f8f9fa;
  padding: 16px;
  border-radius: 8px;
  margin: 24px 0;
  font-size: 16px;
  color: #333;
}

.verification-instructions {
  text-align: left;
  margin: 32px 0;
}

.verification-instructions h3 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 16px;
  text-align: center;
}

.verification-instructions ol {
  padding-left: 20px;
  color: #666;
  line-height: 1.8;
}

.verification-instructions li {
  margin-bottom: 8px;
}

.verification-actions {
  margin: 32px 0;
}

.verification-actions .btn {
  padding: 16px 32px;
  font-size: 16px;
}

.verification-help {
  margin-top: 32px;
}

.verification-help details {
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  padding: 16px;
}

.verification-help summary {
  cursor: pointer;
  font-weight: 600;
  color: #76a713;
  margin-bottom: 12px;
}

.verification-help-content {
  margin-top: 12px;
}

.verification-help-content ul {
  text-align: left;
  margin: 0;
  padding-left: 20px;
  color: #666;
  line-height: 1.6;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .auth-modal-backdrop {
    padding: 0;
    align-items: flex-start;
  }
  
  .auth-modal {
    border-radius: 0;
    max-height: 100vh;
    height: 100vh;
    width: 100%;
    max-width: none;
  }
  
  .auth-form-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .verification-banner-content {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  
  .verification-banner-actions {
    justify-content: center;
  }
  
  .verification-status {
    flex-direction: column;
    text-align: center;
  }
  
  .verification-required-card {
    padding: 24px;
    border-radius: 12px;
  }
  
  .verification-required-content h2 {
    font-size: 24px;
  }
  
  .verification-instructions {
    text-align: left;
  }
}

/* Email Verification Notification Modal */
.verification-notification-modal {
  max-width: 500px;
}

.verification-notification-modal .auth-modal-header {
  border-bottom: none;
  padding: 16px 24px 0 24px;
  margin-bottom: 0;
}

.verification-notification-modal .auth-modal-body {
  padding: 24px 32px 32px 32px;
}

.verification-notification-icon {
  margin-bottom: 20px;
}

.verification-notification-icon i {
  color: #28a745 !important;
}

.verification-notification-title {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  margin-bottom: 16px;
}

.verification-notification-message {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
}

.verification-notification-message strong {
  color: #333;
  font-weight: 600;
  display: block;
  margin-top: 4px;
  word-break: break-all;
}

.verification-notification-steps {
  text-align: left;
  margin: 24px auto;
  max-width: 280px;
}

.step-item {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

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

.step-item i {
  color: #76a713 !important;
  width: 20px;
  flex-shrink: 0;
}

.verification-notification-actions {
  text-align: center;
}

.verification-notification-actions .btn-lg {
  padding: 14px 32px;
  font-weight: 600;
  background-color: #76a713;
  border-color: #76a713;
}

.verification-notification-actions .btn-lg:hover {
  background-color: #659308;
  border-color: #659308;
}

.resend-section {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #eee;
}

.resend-section p {
  margin-bottom: 8px;
}

.resend-section .btn-link {
  color: #76a713;
  text-decoration: none;
  font-weight: 600;
}

.resend-section .btn-link:hover {
  color: #659308;
  text-decoration: underline;
}

.resend-section .btn-link:disabled {
  color: #999;
  cursor: not-allowed;
}

/* Mobile adjustments for notification modal */
@media (max-width: 768px) {
  .verification-notification-modal .auth-modal-body {
    padding: 20px 24px 24px 24px;
  }
  
  .verification-notification-title {
    font-size: 20px;
  }
  
  .verification-notification-steps {
    max-width: none;
  }
}