/* ============================================================
   VISORA — auth-modal.css
   Giriş / Üye Ol popup + navbar hesap düğmesi
   ============================================================ */

.va-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s ease;
}

.va-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.va-modal {
  width: 100%;
  max-width: 400px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 32px 28px 28px;
  position: relative;
  transform: translateY(16px) scale(0.97);
  transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

.va-overlay.open .va-modal {
  transform: translateY(0) scale(1);
}

.va-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--text-tertiary);
}

.va-close:hover { color: var(--text-primary); background: var(--gold-dim); }
.va-close svg { width: 16px; height: 16px; }

.va-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.va-tab {
  flex: 1;
  padding: 0 0 12px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-tertiary);
  border-bottom: 2px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.va-tab.active {
  color: var(--text-primary);
  border-bottom-color: var(--gold);
}

.va-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.va-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 22px;
  line-height: 1.6;
}

.va-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.va-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.va-field label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

.va-field input {
  width: 100%;
  padding: 13px 15px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.25s ease;
}

.va-field input:focus {
  outline: none;
  border-color: var(--gold-border);
}

.va-error {
  font-size: 12.5px;
  color: #e2645a;
  line-height: 1.5;
}

.va-submit {
  width: 100%;
  margin-top: 4px;
}

.va-submit[disabled] { opacity: 0.6; pointer-events: none; }

/* ── Navbar account button ── */
.va-account-btn {
  position: relative;
}

.va-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold);
  color: #1B1A18;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
}

.va-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 190px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 8px;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 500;
}

.va-dropdown.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.va-dropdown-email {
  padding: 8px 10px;
  font-size: 11.5px;
  color: var(--text-tertiary);
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
  word-break: break-all;
}

.va-dropdown a,
.va-dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 10px;
  font-size: 13px;
  border-radius: 8px;
  color: var(--text-primary);
  transition: background 0.2s ease;
}

.va-dropdown a:hover,
.va-dropdown button:hover {
  background: var(--gold-dim);
}

@media (max-width: 768px) {
  .va-modal { padding: 28px 22px 22px; }
}
