/* RazerPin - Auth UI Styles */

/* Header auth widget */
.desktop-menu .auth-widget-wrap { display: inline-flex; align-items: center; margin-left: 8px; }
.desktop-menu .auth-widget { display: inline-flex; align-items: center; gap: 6px; }
.auth-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: #fff; text-decoration: none; font-weight: 700;
  padding: 8px 14px; border-radius: 8px; font-size: 0.9rem;
  background: transparent; border: 1.5px solid rgba(255,255,255,.35);
  cursor: pointer; transition: all .25s ease; white-space: nowrap;
}
.auth-link:hover { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.55); }
.auth-link--primary { background: rgba(255,255,255,.95); color: #06b6d4; border-color: transparent; }
.auth-link--primary:hover { background: #fff; color: #0891b2; transform: translateY(-1px); }
.auth-link--user { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.4); }
.auth-link--logout { background: transparent; }

/* Auth pages */
.auth-page {
  min-height: calc(100vh - 220px);
  display: flex; align-items: center; justify-content: center;
  padding: 40px 16px;
}
.auth-card {
  width: 100%; max-width: 460px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 40px 32px;
  box-shadow: 0 20px 60px rgba(6,182,212,.12), 0 4px 12px rgba(0,0,0,.05);
}
.auth-card__head { text-align: center; margin-bottom: 24px; }
.auth-card__head h1 {
  font-size: 1.85rem; font-weight: 900; margin-bottom: 8px;
  background: linear-gradient(90deg,#06b6d4,#3b82f6,#ec4899);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.auth-card__head p { color: #6b7280; font-size: .95rem; }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form label { font-weight: 700; font-size: .85rem; color: #374151; display: block; margin-bottom: 6px; }
.auth-form .field { display: flex; flex-direction: column; }
.auth-form input {
  padding: 13px 16px; border: 2px solid #e5e7eb; border-radius: 10px;
  font-size: 1rem; transition: all .2s; background: #fff;
}
.auth-form input:focus { outline: 0; border-color: #06b6d4; box-shadow: 0 0 0 3px rgba(6,182,212,.15); }
.auth-form .row { display: flex; gap: 12px; }
.auth-form .row .field { flex: 1; }
.auth-btn {
  padding: 14px 24px; border: none; border-radius: 12px;
  background: linear-gradient(90deg,#06b6d4,#3b82f6,#ec4899);
  color: #fff; font-weight: 900; font-size: 1rem; cursor: pointer;
  transition: all .3s; box-shadow: 0 6px 20px rgba(6,182,212,.3);
}
.auth-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(6,182,212,.4); }
.auth-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.auth-note { text-align: center; color: #6b7280; font-size: .9rem; margin-top: 16px; }
.auth-note a { color: #06b6d4; font-weight: 700; text-decoration: none; }
.auth-note a:hover { text-decoration: underline; }
.auth-error {
  background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.3);
  color: #b91c1c; padding: 10px 14px; border-radius: 10px; font-size: .9rem;
  display: none;
}
.auth-error.show { display: block; }
.auth-success {
  background: rgba(16,185,129,.08); border: 1px solid rgba(16,185,129,.3);
  color: #065f46; padding: 10px 14px; border-radius: 10px; font-size: .9rem;
  display: none;
}
.auth-success.show { display: block; }
.auth-forgot { text-align: right; margin-top: -6px; }
.auth-forgot a { color: #06b6d4; font-size: .85rem; font-weight: 600; text-decoration: none; }
.auth-forgot a:hover { text-decoration: underline; }

/* Account dashboard */
.account-page { padding: 40px 20px; max-width: 1100px; margin: 0 auto; }
.account-header {
  background: linear-gradient(135deg,#06b6d4,#3b82f6,#ec4899);
  border-radius: 20px; padding: 32px; color: #fff; margin-bottom: 24px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.account-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 900; flex-shrink: 0;
}
.account-header h2 { font-size: 1.6rem; font-weight: 900; margin-bottom: 4px; }
.account-header p { opacity: .9; font-size: .95rem; }
.account-balance {
  margin-left: auto; background: rgba(255,255,255,.15); padding: 16px 20px; border-radius: 14px;
  text-align: right; min-width: 180px;
}
.account-balance .label { font-size: .75rem; text-transform: uppercase; letter-spacing: 1px; opacity: .85; }
.account-balance .value { font-size: 1.8rem; font-weight: 900; }

.account-tabs { display: flex; gap: 4px; margin-bottom: 20px; border-bottom: 2px solid #e5e7eb; flex-wrap: wrap; }
.account-tab {
  padding: 12px 20px; background: transparent; border: none; border-bottom: 3px solid transparent;
  color: #6b7280; font-weight: 700; cursor: pointer; font-size: .95rem;
  margin-bottom: -2px; transition: all .2s;
}
.account-tab:hover { color: #06b6d4; }
.account-tab.active { color: #06b6d4; border-bottom-color: #06b6d4; }
.account-panel { display: none; }
.account-panel.active { display: block; }

.account-card {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 24px;
}
.account-card h3 {
  font-size: 1.1rem; font-weight: 800; margin-bottom: 16px; color: #1f2937;
  display: flex; align-items: center; gap: 8px;
}
.account-card h3 i { color: #06b6d4; }

.orders-empty, .favs-empty {
  text-align: center; padding: 48px 20px; color: #6b7280;
}
.orders-empty i, .favs-empty i { font-size: 2.5rem; color: #d1d5db; margin-bottom: 12px; display: block; }

.order-item {
  border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px; margin-bottom: 12px;
  display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: center;
}
.order-item .oi-title { font-weight: 800; color: #1f2937; }
.order-item .oi-meta { font-size: .85rem; color: #6b7280; }
.order-item .oi-total { font-weight: 900; color: #06b6d4; font-size: 1.15rem; text-align: right; }
.order-item .oi-status {
  display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700;
  background: #fef3c7; color: #92400e;
}
.order-item .oi-status.completed { background: #d1fae5; color: #065f46; }

.fav-item {
  border: 1px solid #e5e7eb; border-radius: 12px; padding: 14px 16px; margin-bottom: 10px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.fav-item .fav-name { font-weight: 800; color: #1f2937; }
.fav-item .fav-meta { color: #6b7280; font-size: .85rem; }
.fav-item button {
  background: transparent; border: 1px solid #ef4444; color: #ef4444; padding: 6px 12px;
  border-radius: 8px; font-weight: 700; cursor: pointer; font-size: .85rem;
}
.fav-item button:hover { background: #ef4444; color: #fff; }

/* Small screens */
@media (max-width: 768px) {
  .desktop-menu .auth-widget-wrap { display: none; }
  .auth-card { padding: 28px 20px; }
  .auth-form .row { flex-direction: column; gap: 14px; }
  .account-header { padding: 20px; }
  .account-balance { margin-left: 0; width: 100%; text-align: center; }
  .account-header h2 { font-size: 1.3rem; }
}

/* Mobile-nav injected logout button */
.mobile-logout-btn { color: #ef4444 !important; }
