/* Landing Page Styles */

.landing-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #000000;
  position: relative;
  overflow: hidden;
}

.landing-header {
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 10;
}

.landing-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: white;
  text-decoration: none;
}

.landing-logo__mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, #dc2626, #991b1b);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.2rem;
  color: white;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.landing-logo__text {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
}

.landing-website-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  transition: all 0.2s ease;
}

.landing-website-link:hover {
  color: white;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.landing-actions {
  display: flex;
  gap: 0.75rem;
}

.btn-landing {
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-landing--outline {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-landing--outline:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.btn-landing--solid {
  background: #dc2626;
  color: white;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.btn-landing--solid:hover {
  transform: translateY(-2px);
  background: #b91c1c;
  box-shadow: 0 10px 25px rgba(220, 38, 38, 0.5);
}

.landing-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  z-index: 10;
}

.landing-hero-content {
  text-align: center;
  max-width: 800px;
  color: white;
}

.landing-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin: 0 0 1.5rem;
  line-height: 1.2;
}

.landing-title--product {
  font-size: 4.5rem;
  font-style: italic;
  font-weight: 900;
  color: #dc2626;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.1;
  margin-bottom: 2.5rem;
}

.landing-subtitle {
  font-size: 1.25rem;
  margin: 0 0 2.5rem;
  opacity: 0.95;
  line-height: 1.6;
}

.landing-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Modal subtitle */
.modal__subtitle {
  color: #6b7280;
  font-size: 0.95rem;
  margin-top: 0.25rem;
  font-weight: 400;
}

.modal__dialog--register {
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal__dialog--register .modal__header {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 0.5rem;
}

.modal__body--scrollable {
  max-height: calc(90vh - 140px);
  overflow-y: auto;
  padding: 1.5rem;
  padding-right: 1rem;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Form Sections */
.form-section {
  background: #fafafa;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.form-section--terms {
  background: transparent;
  border: none;
  margin-bottom: 0;
}

.form-section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, #fef2f2 0%, #fff 100%);
  border-bottom: 1px solid #e5e7eb;
}

.form-section-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #dc2626, #991b1b);
  border-radius: 8px;
  color: white;
  flex-shrink: 0;
}

.form-section-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

.form-section-content {
  padding: 1.25rem;
  background: white;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Form Row */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Form Groups */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-group--full {
  grid-column: 1 / -1;
}

.form-group label {
  font-weight: 500;
  color: #374151;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.optional-label {
  font-weight: 400;
  color: #9ca3af;
  font-size: 0.75rem;
}

.required-asterisk {
  color: #dc2626;
  font-weight: 500;
}

.form-group input,
.form-group select {
  border-radius: 8px;
  border: 1px solid #d1d5db;
  padding: 0.625rem 0.875rem;
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  background: #f9fafb;
  color: #1f2937;
}

.form-group input::placeholder,
.form-group select::placeholder {
  color: #9ca3af;
}

.form-group input:hover,
.form-group select:hover {
  background: white;
  border-color: #b0b5bc;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
  background: white;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.75rem center;
  background-repeat: no-repeat;
  background-size: 1.25em 1.25em;
  padding-right: 2.5rem;
}

/* Password Toggle */
.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrapper input {
  width: 100%;
  padding-right: 2.75rem !important;
}

.password-toggle {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  border-radius: 4px;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.password-toggle:hover {
  color: #4b5563;
  background: rgba(0, 0, 0, 0.05);
}

.password-toggle:focus {
  outline: none;
  color: #dc2626;
}

.password-toggle .eye-icon {
  pointer-events: none;
}

.form-hint {
  color: #6b7280;
  font-size: 0.75rem;
  margin-top: 0.125rem;
}

/* Terms Checkbox */
.terms-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, #fef2f2 0%, #fff7ed 100%);
  border: 1px solid #fecaca;
  border-radius: 10px;
  margin-top: 0.5rem;
}

.terms-checkbox input[type="checkbox"] {
  margin-top: 0.125rem;
  width: 18px;
  height: 18px;
  min-width: 18px;
  cursor: pointer;
  accent-color: #dc2626;
  border-radius: 4px;
}

.terms-checkbox label {
  color: #4b5563;
  font-size: 0.8rem;
  line-height: 1.5;
  cursor: pointer;
}

.terms-checkbox a {
  color: #dc2626;
  text-decoration: none;
  font-weight: 500;
}

.terms-checkbox a:hover {
  text-decoration: underline;
}

/* Form Actions */
.form-actions {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.form-required-note {
  text-align: center;
  font-size: 0.75rem;
  color: #6b7280;
  margin: 0;
}

/* Inline warning for registration form (e.g. duplicate email) */
.register-form-warning {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.875rem 1rem;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  box-sizing: border-box;
}

.register-form-warning::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 0.1rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23b91c1c' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.register-form-warning[hidden] {
  display: none !important;
}

.btn-register {
  width: 100%;
  padding: 0.875rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-register:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.45);
}

.btn-register:active {
  transform: translateY(0);
}

.btn-register:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-modal {
  flex: 1;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-modal--primary {
  background: linear-gradient(135deg, #dc2626, #991b1b);
  color: white;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.btn-modal--primary:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #b91c1c, #7f1d1d);
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.4);
}

.btn-modal--secondary {
  background: #f1f5f9;
  color: #475467;
}

.btn-modal--secondary:hover {
  background: #e2e8f0;
}

.modal-switch {
  text-align: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
  font-size: 0.9rem;
  color: #6b7280;
}

.modal-switch a {
  color: #dc2626;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.modal-switch a:hover {
  text-decoration: underline;
}

/* Alert styles moved to main.css */

@media (max-width: 768px) {
  .landing-header {
    padding: 1rem 1.25rem;
  }

  .landing-logo__mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 1rem;
  }

  .landing-logo__text {
    font-size: 1.1rem;
  }

  .landing-website-link span {
    display: none;
  }

  .landing-website-link {
    padding: 0.5rem;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .landing-content {
    padding: 1.5rem 1.25rem;
  }

  .landing-title {
    font-size: 2.25rem;
  }
  
  .landing-title--product {
    font-size: 2.75rem;
    margin-bottom: 1.75rem;
  }
  
  .landing-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .landing-cta {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }
  
  .btn-landing {
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }

  /* Login modal — full screen on mobile */
  .modal__dialog {
    margin: 0;
    max-width: 100%;
    min-height: 100vh;
    border-radius: 0;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
  }

  .modal__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .form-actions {
    flex-direction: column;
    gap: 0.5rem;
  }

  .btn-modal {
    width: 100%;
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
  }
  
  /* Register modal */
  .modal__dialog--register {
    max-width: 100%;
    max-height: 100vh;
    margin: 0;
    border-radius: 0;
  }
  
  .modal__body--scrollable {
    padding: 1rem;
    max-height: calc(100vh - 120px);
  }
  
  .form-section {
    border-radius: 10px;
  }
  
  .form-section-header {
    padding: 0.875rem 1rem;
  }
  
  .form-section-icon {
    width: 32px;
    height: 32px;
  }
  
  .form-section-icon svg {
    width: 16px;
    height: 16px;
  }
  
  .form-section-title {
    font-size: 0.9rem;
  }
  
  .form-section-content {
    padding: 1rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .form-group--full {
    grid-column: 1;
  }
  
  .form-group input,
  .form-group select {
    padding: 0.75rem;
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  .terms-checkbox {
    padding: 0.875rem 1rem;
  }
  
  .terms-checkbox label {
    font-size: 0.75rem;
  }
  
  .modal__subtitle {
    font-size: 0.875rem;
  }

  .modal-switch {
    font-size: 0.85rem;
  }
}

/* Very small phones */
@media (max-width: 400px) {
  .landing-header {
    padding: 0.75rem 1rem;
  }

  .landing-title--product {
    font-size: 2.25rem;
  }

  .landing-subtitle {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .landing-content {
    padding: 1.25rem 1rem;
  }
}
