/* ========================================
   SIGNUP PAGE
   ======================================== */

.signup-page {
  padding: 120px 20px 60px;
  min-height: 80vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.signup-container {
  max-width: 1000px;
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: 18px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

/* ===== HEADER ===== */
.signup-header {
  text-align: center;
  margin-bottom: 30px;
}

.signup-header h1 {
  font-size: 2.2rem;
  background: linear-gradient(135deg, var(--accent-violet), var(--accent-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.signup-header p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ===== FORM ===== */
.signup-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-section h3 {
  font-size: 1rem;
  color: var(--accent-violet);
  border-bottom: 1px solid rgba(139, 92, 246, 0.15);
  padding-bottom: 6px;
  margin-bottom: 4px;
}

.optional-section {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 16px;
}

.optional-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

/* ===== FORM-ROW (2-Spalten) ===== */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* ===== FORM-GROUP ===== */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-group label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ===== INPUT FELDER ===== */
.form-group input:not([type="checkbox"]):not([type="radio"]) {
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 1rem;
  outline: none;
  transition: 0.2s;
  font-family: inherit;
  width: 100%;
}

#birthdate {
  filter: invert(1);
  background-color: #dbdbdb !important;
  color: black;
}

.form-group input:not([type="checkbox"]):not([type="radio"]):focus {
  border-color: var(--accent-violet);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.form-group input.error:not([type="checkbox"]):not([type="radio"]) {
  border-color: var(--accent-pink);
}

.form-group input.error:not([type="checkbox"]):not([type="radio"]):focus {
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.15);
}

/* ===== CUSTOM DROPDOWNS ===== */
.custom-dropdown {
  position: relative;
  width: 100%;
  user-select: none;
}

.custom-dropdown .dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 10px;
  cursor: pointer;
  transition: 0.2s;
  min-height: 46px;
}

.custom-dropdown .dropdown-trigger:hover {
  border-color: rgba(139, 92, 246, 0.4);
}

.custom-dropdown.open .dropdown-trigger {
  border-color: var(--accent-violet);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.custom-dropdown .dropdown-selected {
  color: var(--text-muted);
  flex: 1;
  font-size: 1rem;
}

.custom-dropdown .dropdown-selected.has-value {
  color: var(--text-primary);
}

.custom-dropdown .dropdown-arrow {
  color: var(--text-muted);
  font-size: 0.7rem;
  transition: 0.2s;
  margin-left: 8px;
}

.custom-dropdown.open .dropdown-arrow {
  transform: rotate(180deg);
  color: var(--accent-violet);
}

.custom-dropdown .dropdown-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 10px;
  padding: 6px 0;
  max-height: 200px;
  overflow-y: auto;
  display: none;
  z-index: 100;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.custom-dropdown.open .dropdown-list {
  display: block;
}

.custom-dropdown .dropdown-item {
  padding: 8px 16px;
  color: var(--text-muted);
  cursor: pointer;
  transition: 0.15s;
  font-size: 0.95rem;
}

.custom-dropdown .dropdown-item:hover {
  background: rgba(139, 92, 246, 0.1);
  color: var(--text-primary);
}

.custom-dropdown .dropdown-item.selected {
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent-violet);
}

.custom-dropdown .dropdown-list::-webkit-scrollbar {
  width: 4px;
}

.custom-dropdown .dropdown-list::-webkit-scrollbar-track {
  background: transparent;
}

.custom-dropdown .dropdown-list::-webkit-scrollbar-thumb {
  background: var(--accent-violet);
  border-radius: 2px;
}

/* ===== CUSTOM RADIO BUTTONS ===== */
.radio-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.custom-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text-muted);
  position: relative;
  user-select: none;
}

.custom-radio input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.custom-radio .radio-mark {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(139, 92, 246, 0.3);
  background: var(--bg-card);
  transition: 0.2s;
  flex-shrink: 0;
  position: relative;
}

.custom-radio .radio-mark::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-violet);
  transition: 0.2s;
}

.custom-radio input:checked~.radio-mark {
  border-color: var(--accent-violet);
}

.custom-radio input:checked~.radio-mark::after {
  transform: translate(-50%, -50%) scale(1);
}

.custom-radio:hover .radio-mark {
  border-color: var(--accent-violet);
}

/* ===== FEHLERMELDUNGEN ===== */
.error-message {
  font-size: 0.8rem;
  color: var(--accent-pink);
  display: none;
}

.error-message.visible {
  display: block;
}

/* ===== PASSWORT-HINWEIS ===== */
.password-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.field-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ===== CHECKBOX GROUP ===== */
.checkbox-group {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
}

.checkbox-group .custom-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  position: relative;
  padding-left: 0;
}

.custom-checkbox a {
  text-decoration: underline;
  color: #8b5cf6;
}

.custom-checkbox a:hover {
  opacity: 0.5;
  cursor: pointer;
}

.checkbox-group .custom-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkbox-group .custom-checkbox .checkmark {
  min-width: 20px;
  min-height: 20px;
  width: 20px;
  height: 20px;
  background: var(--bg-card);
  border: 2px solid rgba(139, 92, 246, 0.3);
  border-radius: 4px;
  transition: 0.2s;
  position: relative;
  flex-shrink: 0;
  margin-top: 2px;
}

.checkbox-group .custom-checkbox input:checked~.checkmark {
  background: var(--accent-violet);
  border-color: var(--accent-violet);
}

.checkbox-group .custom-checkbox .checkmark::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  display: none;
}

.checkbox-group .custom-checkbox input:checked~.checkmark::after {
  display: block;
}

.checkbox-group .custom-checkbox span:last-child {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.checkbox-group .custom-checkbox span:last-child a {
  color: var(--accent-violet);
  text-decoration: underline;
}

.checkbox-group .custom-checkbox span:last-child a:hover {
  color: var(--accent-pink);
}

/* ===== FORMULAR-ACTIONS ===== */
.form-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
}

.form-actions .btn-primary {
  width: 100%;
  padding: 12px;
  background: var(--accent-violet);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.form-actions .btn-primary:hover {
  background: var(--accent-pink);
}

.form-actions .btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.login-hint {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.login-hint a {
  color: var(--accent-violet);
  text-decoration: none;
}

.login-hint a:hover {
  text-decoration: underline;
}

/* ===== CURRENCY OPTIONS ===== */
.currency-options {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    padding-top: 4px;
}

.currency-options .custom-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-muted);
    position: relative;
    user-select: none;
    padding-left: 28px;
}

.currency-options .custom-radio input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.currency-options .custom-radio .radio-mark {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(139, 92, 246, 0.3);
    background: var(--bg-card);
    transition: 0.2s;
}

.currency-options .custom-radio .radio-mark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-violet);
    transition: 0.2s;
}

.currency-options .custom-radio input:checked ~ .radio-mark {
    border-color: var(--accent-violet);
}

.currency-options .custom-radio input:checked ~ .radio-mark::after {
    transform: translate(-50%, -50%) scale(1);
}

.currency-options .custom-radio:hover .radio-mark {
    border-color: var(--accent-violet);
}

.currency-options .custom-radio input:checked ~ span:last-child {
    color: var(--text-primary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .signup-page {
    padding: 100px 16px 40px;
  }

  .signup-container {
    padding: 24px;
  }

  .signup-header h1 {
    font-size: 1.8rem;
  }

  .form-group input:not([type="checkbox"]):not([type="radio"]),
  .custom-dropdown .dropdown-trigger {
    font-size: 0.95rem;
    padding: 8px 12px;
  }

  .radio-group {
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .signup-container {
    padding: 16px;
  }

  .signup-header h1 {
    font-size: 1.5rem;
  }

  .form-section h3 {
    font-size: 0.9rem;
  }

  .checkbox-group .custom-checkbox span:last-child {
    font-size: 0.8rem;
  }

  .form-actions .btn-primary {
    font-size: 1rem;
    padding: 10px;
  }

  .custom-dropdown .dropdown-list {
    max-height: 150px;
  }

  .radio-group {
    flex-direction: column;
    gap: 8px;
  }
}