/* Kayıt formları — auth portal sağ panel (koyu cam tema) */

.pp-auth-panel--register {
  padding: 28px 30px 22px;
  min-height: 0;
  height: 100%;
  max-height: 100%;
}

.pp-auth-reg-google {
  margin-bottom: 14px;
}

.pp-auth-reg-google .pp-auth-btn--google {
  width: 100%;
}

.pp-auth-reg-google__hint {
  margin: 10px 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(169, 190, 218, 0.85);
  text-align: center;
}

.pp-auth-reg-google-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 194, 255, 0.1);
  border: 1px solid rgba(0, 210, 255, 0.28);
  font-size: 0.82rem;
  color: rgba(221, 239, 255, 0.92);
}

.pp-auth-reg-google-banner__clear {
  border: none;
  background: transparent;
  color: #7dd3fc;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

.pp-auth-divider--register {
  margin: 16px 0 18px;
}

body.pp-register-google-mode .pp-auth-reg-password-row {
  display: none !important;
}

/* Bilgi kutuları — sayfa paletine uyumlu */
.pp-auth-legacy-register .auth-register-corporate-note {
  margin: 0 0 14px;
  padding: 11px 14px;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.5;
  color: rgba(221, 239, 255, 0.9);
  background: rgba(0, 194, 255, 0.08);
  border: 1px solid rgba(0, 210, 255, 0.22);
  border-left: 3px solid rgba(0, 194, 255, 0.55);
  border-radius: 12px;
}

.pp-auth-legacy-register .auth-register-corporate-note--attention {
  background: rgba(0, 120, 200, 0.22);
  border-color: rgba(0, 210, 255, 0.42);
  border-left-width: 4px;
  border-left-color: #4fd8ff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 24px rgba(0, 194, 255, 0.12);
}

.pp-auth-legacy-register .auth-register-corporate-note--attention strong {
  color: #7dd3fc;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.pp-auth-legacy-register .graduation-info-note {
  background: rgba(0, 194, 255, 0.07) !important;
  border: 1px solid rgba(0, 210, 255, 0.2) !important;
  color: rgba(221, 239, 255, 0.88) !important;
  border-radius: 12px;
}

.pp-auth-legacy-register .graduation-info-note i {
  color: #4fd8ff !important;
}

.pp-auth-legacy-register .registration-warning {
  background: rgba(0, 194, 255, 0.06);
  border: 1px solid rgba(0, 210, 255, 0.2);
  border-radius: 12px;
  color: rgba(221, 239, 255, 0.9);
}

.pp-auth-legacy-register .registration-warning-title {
  color: #7dd3fc;
}

.pp-auth-legacy-register .tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 5px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(4, 14, 34, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pp-auth-legacy-register .tab {
  padding: 9px 8px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: rgba(169, 190, 218, 0.88);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.pp-auth-legacy-register .tab.active {
  color: #fff;
  background: linear-gradient(135deg, #00cfff 0%, #2563eb 100%);
  box-shadow: 0 0 20px rgba(0, 194, 255, 0.22);
}

.pp-auth-legacy-register .form-group {
  margin-bottom: 10px;
}

.pp-auth-legacy-register .form-row {
  gap: 10px;
  margin-bottom: 10px;
}

.pp-auth-legacy-register .form-input,
.pp-auth-legacy-register input[type='text'],
.pp-auth-legacy-register input[type='email'],
.pp-auth-legacy-register input[type='password'],
.pp-auth-legacy-register input[type='tel'],
.pp-auth-legacy-register select,
.pp-auth-legacy-register textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid rgba(0, 194, 255, 0.22);
  background: rgba(4, 14, 34, 0.72);
  color: #f8fafc;
  font-size: 0.9rem;
  box-sizing: border-box;
}

.pp-auth-legacy-register .form-input:focus,
.pp-auth-legacy-register input:focus,
.pp-auth-legacy-register select:focus,
.pp-auth-legacy-register textarea:focus {
  outline: none;
  border-color: rgba(0, 220, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(0, 194, 255, 0.14);
}

.pp-auth-legacy-register .form-input::placeholder,
.pp-auth-legacy-register input::placeholder {
  color: rgba(148, 163, 184, 0.75);
}

.pp-auth-legacy-register .form-input.error,
.pp-auth-legacy-register input.error {
  border-color: rgba(248, 113, 113, 0.65);
}

/* Şifre göster / gizle */
.pp-auth-legacy-register .password-input-wrap {
  position: relative;
  width: 100%;
}

.pp-auth-legacy-register .password-input-wrap .form-input,
.pp-auth-legacy-register .password-input-wrap input[type='password'],
.pp-auth-legacy-register .password-input-wrap input[type='text'] {
  padding-right: 44px;
}

.pp-auth-legacy-register .password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: rgba(125, 211, 252, 0.85);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.pp-auth-legacy-register .password-toggle:hover {
  color: #4fd8ff;
  background: rgba(0, 194, 255, 0.1);
}

.pp-auth-legacy-register .password-toggle:focus-visible {
  outline: 2px solid rgba(0, 220, 255, 0.45);
  outline-offset: 2px;
}

.pp-auth-legacy-register .form-error,
.pp-auth-legacy-register .form-hint {
  color: rgba(252, 165, 165, 0.95);
  font-size: 0.78rem;
  margin-top: 4px;
}

.pp-auth-legacy-register .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: 6px;
  padding: 11px 18px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #00cfff 0%, #2563eb 100%);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 28px rgba(0, 194, 255, 0.22);
  transition: transform 0.22s ease, filter 0.22s ease;
}

.pp-auth-legacy-register .btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.pp-auth-legacy-register .skip-button {
  width: 100%;
  min-height: 44px;
  background: rgba(4, 14, 34, 0.55);
  border: 1px solid rgba(0, 194, 255, 0.2);
  color: rgba(221, 239, 255, 0.88);
  box-shadow: none;
}

.pp-auth-legacy-register .pp-auth-reg-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}

.pp-auth-legacy-register .pp-auth-reg-actions .btn,
.pp-auth-legacy-register .pp-auth-reg-actions .skip-button {
  width: 100%;
  margin-top: 0;
}

.pp-auth-legacy-register .corporate-type-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pp-auth-legacy-register .corporate-type-btn {
  width: 100%;
  flex: none;
  text-align: center;
  box-sizing: border-box;
}

.pp-auth-legacy-register .education-level-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-wrap: nowrap;
}

.pp-auth-legacy-register .education-level-option {
  width: 100%;
  flex: none;
  min-width: 0;
  box-sizing: border-box;
}

.pp-auth-legacy-register .alert {
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 10px;
  font-size: 0.86rem;
}

.pp-auth-legacy-register .alert-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fecaca;
}

.pp-auth-legacy-register .alert-success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #a7f3d0;
}

.pp-auth-legacy-register .phone-input-group {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.pp-auth-legacy-register .phone-prefix {
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 14px 0 0 14px;
  background: rgba(4, 14, 34, 0.9);
  border: 1px solid rgba(0, 194, 255, 0.22);
  border-right: none;
  color: rgba(169, 190, 218, 0.9);
  font-weight: 600;
}

.pp-auth-legacy-register .phone-input-group .form-input {
  border-radius: 0 14px 14px 0;
}

.pp-auth-legacy-register .select2-container {
  width: 100% !important;
}

.pp-auth-legacy-register .select2-container--open {
  z-index: 1200;
}

/* Auth portal: Select2 listesi body'de — scroll panelinden bağımsız sabit hizalama */
body.pp-auth-portal-page > .select2-container.select2-container--open {
  z-index: 2147483000;
}

body.pp-auth-portal-page .select2-dropdown.pp-auth-select2-dropdown {
  border-radius: 12px;
  border: 1px solid rgba(0, 194, 255, 0.28);
  background: rgba(4, 14, 34, 0.96);
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.45);
  margin-top: 6px;
}

body.pp-auth-portal-page .pp-auth-select2-dropdown .select2-search--dropdown {
  padding: 10px;
  background: rgba(4, 14, 34, 0.9);
  border-bottom: 1px solid rgba(0, 194, 255, 0.18);
}

body.pp-auth-portal-page .pp-auth-select2-dropdown .select2-search__field {
  border-radius: 8px;
  border: 1px solid rgba(0, 194, 255, 0.22);
  background: rgba(4, 14, 34, 0.85);
  color: #f8fafc;
}

body.pp-auth-portal-page .pp-auth-select2-dropdown .select2-results__option {
  color: #e2e8f0;
  padding: 10px 12px;
}

body.pp-auth-portal-page .pp-auth-select2-dropdown .select2-results__option--highlighted.select2-results__option--selectable {
  background: rgba(0, 194, 255, 0.22);
  color: #e0f2fe;
}

.pp-auth-legacy-register .select2-container--default .select2-selection--single {
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(0, 194, 255, 0.22);
  background: rgba(4, 14, 34, 0.72);
}

.pp-auth-legacy-register .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #f8fafc;
  line-height: 46px;
  padding-left: 14px;
}

.pp-auth-legacy-register label,
.pp-auth-legacy-register .form-group label,
.pp-auth-legacy-register h3,
.pp-auth-legacy-register h4,
.pp-auth-legacy-register p {
  color: rgba(221, 239, 255, 0.88);
}

.pp-auth-legacy-register .corporate-type-btn:not(.active) {
  background: rgba(4, 14, 34, 0.45);
  color: rgba(148, 163, 184, 0.85);
  border-color: rgba(0, 194, 255, 0.12);
}

.pp-auth-legacy-register .corporate-type-btn.active {
  border-color: rgba(0, 220, 255, 0.4);
  background: rgba(0, 194, 255, 0.12);
  color: #7dd3fc;
}

.pp-auth-legacy-register .graduation-section {
  background: rgba(0, 194, 255, 0.06);
  border-color: rgba(0, 194, 255, 0.18);
  padding: 16px;
  margin-top: 12px;
}

.pp-auth-legacy-register .ttbs-info-box {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(52, 211, 153, 0.35);
}

.pp-auth-legacy-register .ttbs-info-header {
  color: #6ee7b7;
}

.pp-auth-legacy-register .ttbs-value {
  color: #f8fafc;
}

/* OTP modal — auth_portal_base base.html stillerini taşır (yatay 6 kutu) */
.otp-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(3, 10, 30, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.otp-modal-overlay.active {
  display: flex;
}

.otp-modal {
  width: 100%;
  max-width: 440px;
  padding: 32px 28px 28px;
  border-radius: 24px;
  background: rgba(6, 16, 38, 0.96);
  border: 1px solid rgba(0, 220, 255, 0.22);
  box-shadow: 0 0 70px rgba(0, 170, 255, 0.15);
  color: #f8fafc;
}

.otp-modal-header {
  text-align: center;
  margin-bottom: 18px;
}

.otp-modal-title {
  margin: 0 0 6px;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
}

.otp-modal-subtitle {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(169, 190, 218, 0.9);
}

.otp-phone-display {
  text-align: center;
  padding: 12px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: rgba(4, 14, 34, 0.65);
  border: 1px solid rgba(0, 194, 255, 0.18);
  font-size: 1rem;
  font-weight: 600;
  color: #7dd3fc;
  letter-spacing: 0.08em;
}

.otp-input-group {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
}

.otp-input {
  width: 46px;
  height: 52px;
  flex: 0 0 46px;
  text-align: center;
  font-size: 1.35rem;
  font-weight: 700;
  border: 1px solid rgba(0, 194, 255, 0.28);
  border-radius: 12px;
  background: rgba(4, 14, 34, 0.75);
  color: #fff;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.otp-input:focus {
  outline: none;
  border-color: rgba(0, 220, 255, 0.65);
  box-shadow: 0 0 0 3px rgba(0, 194, 255, 0.15);
}

.otp-input.filled {
  border-color: rgba(0, 220, 255, 0.5);
  background: rgba(0, 194, 255, 0.08);
}

.otp-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.otp-actions .btn {
  margin-top: 0;
}

.otp-resend {
  text-align: center;
  margin-top: 12px;
}

.otp-resend button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 18px;
  border-radius: 12px;
  border: 1px solid rgba(0, 194, 255, 0.28);
  background: rgba(4, 14, 34, 0.55);
  color: #7dd3fc;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.otp-resend button:hover:not(:disabled) {
  background: rgba(0, 194, 255, 0.12);
  border-color: rgba(0, 220, 255, 0.45);
  color: #fff;
}

.otp-resend button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  color: rgba(148, 163, 184, 0.7);
}

.otp-timer {
  margin-top: 8px;
  font-size: 0.8rem;
  color: rgba(169, 190, 218, 0.75);
}

/* Referans hediye kutusu — form altı, dikkat çekici */
.pp-auth-legacy-register .referral-phone-card {
  margin: 22px 0 18px;
  padding: 16px 16px 14px;
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(245, 158, 11, 0.16) 0%, rgba(0, 194, 255, 0.06) 55%, rgba(15, 23, 42, 0.35) 100%);
  border: 1px solid rgba(251, 191, 36, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(245, 158, 11, 0.12),
    0 10px 28px rgba(245, 158, 11, 0.12);
  animation: referral-phone-card-pulse 2.8s ease-in-out infinite;
}

.pp-auth-legacy-register .referral-phone-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.pp-auth-legacy-register .referral-phone-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff7ed;
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.35);
}

.pp-auth-legacy-register .referral-phone-card__optional {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(253, 230, 138, 0.9);
}

.pp-auth-legacy-register .referral-phone-card__lead {
  margin: 0 0 12px;
  font-size: 0.86rem;
  line-height: 1.45;
  color: rgba(255, 247, 237, 0.95);
}

.pp-auth-legacy-register .referral-phone-card__lead strong {
  color: #fde68a;
  font-weight: 700;
}

.pp-auth-legacy-register .referral-phone-card .phone-input-group {
  margin-bottom: 0;
}

.pp-auth-legacy-register .referral-phone-card .phone-prefix {
  background: rgba(245, 158, 11, 0.22);
  border-color: rgba(251, 191, 36, 0.45);
  color: #fde68a;
}

.pp-auth-legacy-register .referral-phone-card .form-input {
  border-color: rgba(251, 191, 36, 0.4);
  background: rgba(15, 23, 42, 0.55);
}

.pp-auth-legacy-register .referral-phone-card .form-input:focus {
  border-color: #fbbf24;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.22);
}

.pp-auth-legacy-register .referral-phone-preview {
  min-height: 1.2em;
  margin-top: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fde68a;
}

@keyframes referral-phone-card-pulse {
  0%, 100% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 0 0 1px rgba(245, 158, 11, 0.12),
      0 10px 28px rgba(245, 158, 11, 0.12);
  }
  50% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.1),
      0 0 0 1px rgba(251, 191, 36, 0.35),
      0 12px 32px rgba(245, 158, 11, 0.22);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pp-auth-legacy-register .referral-phone-card {
    animation: none;
  }
}

@media (max-width: 480px) {
  .otp-input {
    width: 40px;
    height: 48px;
    flex: 0 0 40px;
    font-size: 1.15rem;
  }

  .otp-input-group {
    gap: 6px;
  }
}

/* Şifre kural check satırları (kayıt) */
.pp-auth-legacy-register .password-rules {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pp-auth-legacy-register .password-rule {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.35;
}

.pp-auth-legacy-register .password-rule__mark {
  flex: 0 0 auto;
  width: 0.9em;
  text-align: center;
}

.pp-auth-legacy-register .password-rule.is-ok {
  color: #4ade80;
}

.pp-auth-legacy-register .password-rule.is-fail {
  color: #f87171;
}

