/* ============================================================
   AUTH.CSS — Login / Signup / Account pages
   ============================================================ */

/* ---- Auth page layout ---- */
.auth-page {
  min-height: 100vh;
  background: #0a0a10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  position: relative;
  overflow: hidden;
}

.auth-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(255,59,92,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(99,102,241,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.auth-logo-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
  text-decoration: none;
  margin-bottom: 2rem;
  z-index: 1;
}
.auth-logo-link span { color: var(--color-primary, #FF3B5C); }

/* ---- Auth card ---- */
.auth-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 2.5rem;
  width: 100%;
  max-width: 440px;
  backdrop-filter: blur(20px);
  z-index: 1;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
}

/* ---- Tab switcher ---- */
.auth-tabs {
  display: flex;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 2rem;
}
.auth-tab {
  flex: 1;
  padding: 0.55rem;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 9px;
  transition: all 0.2s;
}
.auth-tab.active {
  background: rgba(255,255,255,0.1);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* ---- Form ---- */
.auth-form { display: flex; flex-direction: column; gap: 1rem; }

.auth-field { display: flex; flex-direction: column; gap: 0.4rem; }
.auth-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.auth-input-wrap { position: relative; }
.auth-input {
  width: 100%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  box-sizing: border-box;
}
.auth-input:focus {
  border-color: rgba(255,59,92,0.6);
  background: rgba(255,255,255,0.1);
}
.auth-input::placeholder { color: rgba(255,255,255,0.25); }
.auth-input.error { border-color: rgba(239,68,68,0.7); }

.auth-pw-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}
.auth-pw-toggle:hover { color: rgba(255,255,255,0.7); }

/* ---- Error message ---- */
.auth-error {
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
  color: #fca5a5;
  font-size: 0.85rem;
  display: none;
}
.auth-error.show { display: block; }

/* ---- Submit button ---- */
.auth-submit {
  margin-top: 0.5rem;
  padding: 0.85rem;
  background: linear-gradient(135deg, #FF3B5C, #FF6B35);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
  position: relative;
  overflow: hidden;
}
.auth-submit:hover { opacity: 0.9; transform: translateY(-1px); }
.auth-submit:active { transform: translateY(0); }
.auth-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.auth-submit-loader {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 0 auto;
}
.auth-submit.loading .auth-submit-text { display: none; }
.auth-submit.loading .auth-submit-loader { display: block; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Divider ---- */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255,255,255,0.25);
  font-size: 0.8rem;
  margin: 0.25rem 0;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.1);
}

/* ---- Footer note ---- */
.auth-foot {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}
.auth-foot a { color: rgba(255,59,92,0.85); text-decoration: none; }
.auth-foot a:hover { color: #FF3B5C; }

/* ==========================================================
   ACCOUNT PAGE
   ========================================================== */
.account-page {
  min-height: 100vh;
  background: #0a0a10;
  color: #fff;
}

/* ---- Account header ---- */
.account-hero {
  background: linear-gradient(135deg, #13131f 0%, #1a1a2e 100%);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 3rem 0 2.5rem;
}
.account-hero-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.account-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF3B5C, #FF6B35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: -1px;
}
.account-info { flex: 1; min-width: 200px; }
.account-name {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
  letter-spacing: -0.5px;
}
.account-email { color: rgba(255,255,255,0.5); font-size: 0.95rem; }
.account-since {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  margin-top: 0.3rem;
}

.account-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.account-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.account-stat-num {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #FF3B5C, #FF6B35);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.account-stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.account-actions-top {
  margin-left: auto;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

/* ---- Proofs section ---- */
.account-section {
  padding: 2.5rem 0;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.account-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.account-section-title {
  font-size: 1.3rem;
  font-weight: 700;
}

/* ---- Proof grid ---- */
.proofs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
}

.proof-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.proof-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,59,92,0.35);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.proof-thumb {
  width: 100%;
  aspect-ratio: 1;
  background: #16162a;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.proof-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.proof-thumb-empty {
  color: rgba(255,255,255,0.15);
  font-size: 2.5rem;
}

.proof-info {
  padding: 0.9rem;
}
.proof-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.proof-meta {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.proof-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.5rem;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.5);
  text-transform: capitalize;
}

.proof-actions {
  display: flex;
  gap: 0.5rem;
}
.proof-btn {
  flex: 1;
  padding: 0.45rem 0.5rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.8);
  transition: all 0.15s;
  text-align: center;
}
.proof-btn:hover { background: rgba(255,255,255,0.12); color: #fff; }
.proof-btn.primary {
  background: rgba(255,59,92,0.18);
  border-color: rgba(255,59,92,0.35);
  color: #FF3B5C;
}
.proof-btn.primary:hover { background: rgba(255,59,92,0.28); }
.proof-btn.danger:hover { background: rgba(239,68,68,0.18); border-color: rgba(239,68,68,0.35); color: #f87171; }

/* ---- Empty state ---- */
.proofs-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  color: rgba(255,255,255,0.3);
}
.proofs-empty-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  opacity: 0.4;
}
.proofs-empty h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.5rem;
}
.proofs-empty p { font-size: 0.88rem; max-width: 300px; margin: 0 auto 1.5rem; }

/* ==========================================================
   NAV AUTH BUTTON
   ========================================================== */
.auth-nav-wrap {
  position: relative;
}
.auth-avatar-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF3B5C, #FF6B35);
  border: 2px solid rgba(255,255,255,0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.auth-avatar-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 0 3px rgba(255,59,92,0.25);
}

.auth-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #1a1a2e;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  min-width: 220px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.6);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.2s, transform 0.2s;
  z-index: 1000;
  overflow: hidden;
}
.auth-nav-wrap.open .auth-dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.auth-dropdown-header {
  padding: 1rem 1rem 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.auth-dropdown-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
}
.auth-dropdown-email {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  margin-top: 0.15rem;
}

.auth-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1rem;
  color: rgba(255,255,255,0.75);
  font-size: 0.88rem;
  text-decoration: none;
  background: none;
  border: none;
  width: 100%;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.auth-dropdown-item:hover { background: rgba(255,255,255,0.06); color: #fff; }
.auth-dropdown-item.danger:hover { color: #f87171; background: rgba(239,68,68,0.08); }

/* Plain person-icon link (logged out state) */
.auth-icon-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 59, 92, 0.85) !important;
  border: 2px solid rgba(255,255,255,0.3) !important;
  color: #fff !important;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  cursor: pointer;
  flex-shrink: 0;
}
.auth-icon-btn:hover {
  background: #FF3B5C !important;
  transform: scale(1.08);
  box-shadow: 0 0 0 4px rgba(255,59,92,0.25);
}

.auth-signin-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.auth-signin-btn:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* ---- Account page nav strip ---- */
.account-nav {
  background: #13131f;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.account-nav a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s;
}
.account-nav a:hover { color: #fff; }
.account-nav .breadcrumb-sep { color: rgba(255,255,255,0.2); }

/* Responsive */
@media (max-width: 600px) {
  .auth-card { padding: 1.75rem 1.25rem; }
  .account-hero-inner { flex-direction: column; align-items: flex-start; }
  .account-actions-top { margin-left: 0; }
  .proofs-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}
