/* Vavsan SSO — login / register (kompakt, mobil öncelikli) */
:root {
  --vav-blue: #206bc4;
  --vav-orange: #f76707;
  --vav-auth-radius: 14px;
}

.vav-auth-body {
  min-height: 100dvh;
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #0f172a;
  overflow-x: hidden;
}

.vav-auth-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(32, 107, 196, 0.45), transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 85%, rgba(247, 103, 7, 0.35), transparent 50%),
    linear-gradient(145deg, #0f172a 0%, #1e293b 45%, #0f172a 100%);
  animation: vavAuthBgShift 12s ease-in-out infinite alternate;
}

.vav-auth-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.5;
}

@keyframes vavAuthBgShift {
  0% { filter: hue-rotate(0deg) brightness(1); }
  100% { filter: hue-rotate(8deg) brightness(1.05); }
}

.vav-auth-shell {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
}

.vav-auth-wrap {
  width: 100%;
  max-width: 400px;
}

.vav-auth-logo {
  text-align: center;
  margin-bottom: 12px;
  animation: vavAuthFadeUp 0.5s ease both;
}

.vav-auth-brand-img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: block;
  margin: 0 auto 6px;
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.45);
  object-fit: cover;
}

.vav-auth-logo small {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  font-weight: 500;
}

.vav-auth-card {
  background: rgba(255, 255, 255, 0.97);
  border-radius: var(--vav-auth-radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: vavAuthFadeUp 0.55s ease 0.08s both;
  overflow: hidden;
}

.vav-auth-card-inner {
  padding: 14px 16px 12px;
}

.vav-auth-title {
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  margin: 0 0 10px;
  color: #1e293b;
}

/* Platform seçici — 3 sekme, kaydırma yok */
.vav-auth-platform-picker {
  margin-bottom: 12px;
}

.vav-auth-platform-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
  text-align: center;
  margin: 0 0 8px;
}

.vav-auth-platform-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}

.vav-auth-platform-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 4px;
  min-height: 58px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.vav-auth-platform-tab .tab-ico {
  font-size: 1.25rem;
  line-height: 1;
}

.vav-auth-platform-tab .tab-lbl {
  font-size: 0.68rem;
  font-weight: 700;
  color: #334155;
  text-align: center;
  line-height: 1.15;
}

.vav-auth-platform-tab.is-active {
  border-color: #dc2626;
  background: linear-gradient(180deg, #fff5f5, #ffffff);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.12);
}

.vav-auth-platform-tab.is-active .tab-lbl {
  color: #b91c1c;
}

.vav-auth-platform-detail {
  padding: 10px 12px;
  border-radius: 10px;
  background: linear-gradient(135deg, #eff6ff 0%, #fff7ed 100%);
  border: 1px solid #e2e8f0;
  text-align: center;
  animation: vavAuthFadeUp 0.25s ease both;
}

.vav-auth-platform-detail strong {
  display: block;
  font-size: 0.88rem;
  color: #0f172a;
  margin-bottom: 2px;
}

.vav-auth-platform-detail span {
  font-size: 0.72rem;
  color: #64748b;
}

/* Form — kompakt */
.vav-auth-form .form-label {
  font-size: 0.72rem;
  font-weight: 600;
  margin-bottom: 3px;
  color: #475569;
}

.vav-auth-form .form-control,
.vav-auth-form .form-select {
  font-size: 0.85rem;
  padding: 0.35rem 0.65rem;
  min-height: 34px;
  border-radius: 8px;
}

.vav-auth-form .mb-field {
  margin-bottom: 8px;
}

.vav-auth-form .input-group-text {
  padding: 0.25rem 0.5rem;
  border-radius: 0 8px 8px 0 !important;
}

.vav-auth-form .input-group .form-control {
  border-radius: 8px 0 0 8px !important;
}

.vav-auth-row-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
}

.vav-auth-form .form-check-label {
  font-size: 0.75rem;
}

.vav-auth-btn-primary {
  background: linear-gradient(135deg, var(--vav-blue), #1d4ed8);
  border: none;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.4rem 1rem;
  border-radius: 8px;
  white-space: nowrap;
}

.vav-auth-btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, var(--vav-blue));
}

.vav-auth-btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #334155;
  text-decoration: none;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.vav-auth-btn-google:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  color: #0f172a;
}

.vav-auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
  color: #94a3b8;
  font-size: 0.68rem;
}

.vav-auth-divider::before,
.vav-auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.vav-auth-footer-link {
  text-align: center;
  margin-top: 8px;
  font-size: 0.75rem;
  color: #64748b;
}

.vav-auth-footer-link a {
  color: var(--vav-blue);
  font-weight: 700;
  text-decoration: none;
}

.vav-auth-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  margin-top: 6px;
  padding: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #166534;
  text-decoration: none;
}

.vav-auth-register-cta {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: var(--vav-auth-radius);
  background: rgba(255, 255, 255, 0.12);
  border: 1px dashed rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  animation: vavAuthFadeUp 0.6s ease 0.15s both;
}

.vav-auth-register-cta p {
  margin: 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
}

.vav-auth-register-cta strong {
  display: block;
  font-size: 0.82rem;
  color: #fff;
}

.vav-auth-register-cta .btn {
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  font-weight: 700;
  white-space: nowrap;
}

/* Register — biraz daha uzun form */
.vav-auth-wrap--register {
  max-width: 440px;
}

.vav-auth-card--register .vav-auth-card-inner {
  max-height: calc(100dvh - 80px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.vav-auth-google-strip {
  padding: 8px 10px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f8f9ff, #eef2ff);
  border: 1px solid #e0e7ff;
  margin-bottom: 10px;
  font-size: 0.72rem;
}

.vav-auth-pw-checklist {
  font-size: 0.68rem;
  padding: 8px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px dashed #e2e8f0;
}

.vav-auth-pw-checklist li {
  margin-bottom: 2px;
}

.vav-auth-kvkk {
  padding: 8px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.vav-auth-kvkk .form-check-label {
  font-size: 0.68rem;
  line-height: 1.35;
}

.country-select {
  max-width: 82px !important;
  min-width: 82px !important;
  padding-left: 6px !important;
  font-size: 0.78rem !important;
}

@keyframes vavAuthFadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-height: 700px) {
  .vav-auth-logo { margin-bottom: 6px; }
  .vav-auth-brand-img { width: 52px; height: 52px; }
  .vav-auth-card-inner { padding: 10px 14px 8px; }
  .vav-auth-platform-tab { min-height: 52px; padding: 6px 2px; }
  .vav-auth-platform-tab .tab-lbl { font-size: 0.62rem; }
}
