/* =========================================================
   VIKERDO SHOP - User Auth Styles (Modern, Sleek & Animated)
   ========================================================= */

/* User Auth Button in Header */
.user-auth-wrap {
  position: relative;
}

.auth-btn {
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-btn:hover {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.auth-btn:active {
  transform: scale(0.96);
}

/* User Dropdown */
.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 8px;
  min-width: 200px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  z-index: 999;
  animation: dropdownPop 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes dropdownPop {
  from { opacity: 0; transform: translateY(-8px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.user-dropdown-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-primary);
  padding: 8px 10px 10px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  transition: all 0.2s ease;
}

.user-dropdown-item:hover {
  background: rgba(99, 102, 241, 0.12);
  color: #818cf8;
}

.user-dropdown-item.danger {
  color: #f87171;
}

.user-dropdown-item.danger:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}

/* Auth Modal Backdrop */
.auth-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 12, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeInBackdrop 0.25s ease-out;
}

@keyframes fadeInBackdrop {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Auth Modal Box */
.auth-modal {
  background: #0f1422;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 44px 32px 32px;
  width: 100%;
  max-width: 440px;
  position: relative;
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.7), 0 0 35px rgba(99, 102, 241, 0.15);
  animation: slideUpModal 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="light"] .auth-modal {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15), 0 0 25px rgba(99, 102, 241, 0.1);
}

@keyframes slideUpModal {
  from { transform: translateY(24px) scale(0.96); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

/* Çarpı Kapatma Butonu - Artık Butonlarla Çakışmaz */
.auth-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.2s ease;
  z-index: 10;
}

.auth-modal-close:hover {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.3);
  transform: rotate(90deg) scale(1.05);
}

.auth-modal-close:active {
  transform: rotate(90deg) scale(0.92);
}

/* Tabs: Giriş Yap / Kayıt Ol */
.auth-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 5px;
  margin-bottom: 24px;
  gap: 5px;
}

[data-theme="light"] .auth-tabs {
  background: #f1f5f9;
  border-color: #e2e8f0;
}

.auth-tab {
  flex: 1;
  padding: 10px;
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.auth-tab:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

.auth-tab.active {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.45);
}

.auth-tab:active {
  transform: scale(0.97);
}

/* Form Titles */
.auth-form-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.2px;
}

.auth-form-title i {
  color: #818cf8;
  font-size: 17px;
}

/* Input Fields & Icons */
.auth-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}

.auth-field label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-field-icon {
  position: absolute;
  left: 14px;
  color: var(--text-dim);
  font-size: 14px;
  transition: color 0.2s ease;
  pointer-events: none;
}

.auth-password-toggle {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-dim, #94a3b8);
  font-size: 14px;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
  z-index: 2;
}

.auth-password-toggle:hover {
  color: #818cf8;
  background: rgba(99, 102, 241, 0.1);
}

.auth-input.has-toggle {
  padding-right: 42px !important;
}

.auth-input {
  width: 100%;
  background: #090c15;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  padding: 12px 14px 12px 40px;
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .auth-input {
  background: #f8fafc;
  border-color: #cbd5e1;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.auth-input:focus {
  border-color: #6366f1;
  background: #0d1220;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25), inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .auth-input:focus {
  background: #ffffff;
}

.auth-input:focus + .auth-field-icon,
.auth-input-wrap:focus-within .auth-field-icon {
  color: #818cf8;
}

/* Feedback Messages */
.auth-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  padding: 11px 14px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: shakeError 0.35s ease;
}

@keyframes shakeError {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.auth-success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
  padding: 11px 14px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
  animation: fadeInBackdrop 0.25s ease;
}

/* Action Submit Buttons with Click Animation */
.auth-submit-btn {
  width: 100%;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #ffffff;
  border: none;
  padding: 13px 20px;
  border-radius: 11px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.4);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 6px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.auth-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.55);
}

.auth-submit-btn:active {
  transform: scale(0.97);
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
}

/* Switcher text at bottom */
.auth-switch {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.auth-switch-btn {
  background: none;
  border: none;
  color: #818cf8;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  padding: 2px 4px;
  transition: color 0.2s ease;
}

.auth-switch-btn:hover {
  color: #a5b4fc;
}

/* Responsive */
@media (max-width: 500px) {
  .auth-modal {
    padding: 36px 20px 24px;
    border-radius: 16px;
  }
}
