/* === Auth Pages (Login, Register, Profile) === */

.auth-container {
  display: flex;
  justify-content: center;
  padding: 20px 0;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px;
}
.auth-title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}
.auth-subtitle {
  color: var(--fg-muted);
  font-size: 15px;
  margin-bottom: 28px;
}
.auth-error {
  background: rgba(255, 77, 77, 0.1);
  border: 1px solid var(--red);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--red);
  font-size: 14px;
  margin-bottom: 20px;
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.auth-btn {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  margin-top: 4px;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: var(--fg-muted);
  font-size: 13px;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-google-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--fg-muted);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  cursor: not-allowed;
  opacity: 0.6;
  transition: all 0.2s;
}
a.auth-google-btn--active {
  cursor: pointer;
  opacity: 1;
  color: var(--fg);
  text-decoration: none;
}
a.auth-google-btn--active:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.auth-switch {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--fg-muted);
}
.auth-switch a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.auth-switch a:hover {
  text-decoration: underline;
}

/* === Profile Page === */
.profile-container {
  max-width: 600px;
  margin: 0 auto;
}
.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  margin-bottom: 24px;
}
.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.profile-avatar span {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--bg);
}
.profile-name {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 4px;
}
.profile-email {
  color: var(--fg-muted);
  font-size: 15px;
  margin-bottom: 12px;
}
.profile-role {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  color: var(--fg-muted);
}
.profile-role--seller {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.profile-role--admin {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.profile-success {
  background: rgba(200, 255, 0, 0.1);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 14px 20px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
  text-align: center;
}
.profile-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 16px;
}
.profile-section-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: -0.2px;
}
.profile-section-desc {
  color: var(--fg-muted);
  font-size: 15px;
  margin-bottom: 16px;
  line-height: 1.6;
}
.profile-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.profile-detail-label {
  display: block;
  font-size: 12px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.profile-detail-value {
  font-weight: 600;
  font-size: 15px;
}
.profile-logout {
  color: var(--red);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.profile-logout:hover {
  text-decoration: underline;
}

/* === Nav User Menu === */
.nav-user {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-user-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 14px;
  color: var(--fg);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s;
  text-decoration: none;
}
.nav-user-trigger:hover {
  border-color: var(--accent);
}
.nav-user-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--bg);
}
.nav-user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  min-width: 180px;
  padding: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  z-index: 1002;
}
.nav-user:hover .nav-user-dropdown,
.nav-user-dropdown:hover {
  display: block;
}
.nav-user-dropdown a {
  display: block;
  padding: 10px 14px;
  color: var(--fg);
  text-decoration: none;
  font-size: 14px;
  border-radius: 6px;
  transition: background 0.15s;
}
.nav-user-dropdown a:hover {
  background: var(--bg-raised);
}
.nav-user-dropdown .nav-dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 0;
}

@media (max-width: 768px) {
  .auth-card { padding: 32px 24px; }
  .profile-detail-grid { grid-template-columns: 1fr; }
  .nav-user-dropdown {
    position: static;
    box-shadow: none;
    border: none;
    background: transparent;
    display: flex;
    flex-direction: column;
    min-width: auto;
    padding: 0;
  }
  .nav-user { flex-direction: column; gap: 8px; }
}
