/* =========================================
   14. AUTHENTICATION FORMS
   ========================================= */
.auth-container {
  max-width: 400px;
  margin: 0 auto;
  background: #12110f;
  border: 1px solid var(--line);
  padding: 30px;
  border-radius: 12px;
  text-align: left;
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.auth-form label {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: -8px;
}
.field-help { margin-top: -8px; color: #9e968c; font-size: 12px; line-height: 1.45; }
.auth-form input {
  padding: 12px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #1a1a1a;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  color-scheme: dark;
}
.auth-form input:focus {
  outline: none;
  border-color: var(--gold);
}
.auth-btn {
  background: linear-gradient(135deg, #efb544, #bb7920);
  border: 0;
  border-radius: 6px;
  padding: 12px;
  font-weight: bold;
  color: #181008;
  margin-top: 10px;
}
.auth-footer {
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}
.auth-footer a {
  color: var(--gold);
  text-decoration: none;
  font-weight: bold;
}

/* =========================================
   20. GOOGLE AUTHENTICATION STYLES
   ========================================= */
.auth-separator {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0;
  color: #c1bdb5;
  font-size: 14px;
}
.auth-separator::before,
.auth-separator::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.auth-separator:not(:empty)::before {
  margin-right: 15px;
}
.auth-separator:not(:empty)::after {
  margin-left: 15px;
}
.google-auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  background: white;
  color: #333;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
.google-auth-btn:hover {
  background: #f1f1f1;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}
.text-center {
  text-align: center;
}
.empty-state-icon {
  width: 48px;
  height: 48px;
  color: var(--gold);
  margin-bottom: 20px;
}

.password-strength { margin-top: -5px; }
.password-strength-track { overflow: hidden; height: 7px; border-radius: 999px; background: #302a22; }
.password-strength-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: #c94d42; transition: width .25s ease, background .25s ease; }
.password-strength-track span[data-score="3"] { background: #d99c2e; }
.password-strength-track span[data-score="4"], .password-strength-track span[data-score="5"] { background: #4ec879; }
.password-strength p { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.password-rules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px 15px; margin: -4px 0 2px; padding: 0; list-style: none; color: #9e968c; font-size: 12px; }
.password-rules li::before { content: "○"; margin-right: 6px; }
.password-rules li.passed { color: #69d38b; }
.password-rules li.passed::before { content: "✓"; }
.verification-panel { margin-top: 22px; padding: 22px; border: 1px solid #624a27; border-radius: 12px; background: rgba(217, 156, 46, .07); }
.verification-panel[hidden] { display: none; }
.verification-panel h2 { margin: 0 0 8px; font-size: 22px; }
.verification-panel p { color: var(--muted); line-height: 1.5; }
.verification-panel label { display: block; margin: 15px 0 7px; color: #c6beb2; }
.verification-panel input { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 7px; background: #111; color: #fff; letter-spacing: 5px; text-align: center; }
.demo-code { padding: 10px; border-radius: 7px; background: #0f0d0a; }
.demo-code b { color: var(--gold); letter-spacing: 2px; }
.verification-panel .auth-btn { width: 100%; }
.verification-resend { width: 100%; margin-top: 9px; border: 0; background: transparent; color: var(--gold); }

.profile-page { padding-bottom: 65px; }
.profile-hero { display: flex; align-items: end; justify-content: space-between; gap: 25px; padding: clamp(52px, 8vw, 90px) 0 40px; }
.profile-eyebrow { margin: 0 0 10px; color: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: 2px; }
.profile-hero h1 { margin: 0 0 12px; font-size: clamp(45px, 7vw, 78px); line-height: 1; }.profile-hero h1 span { color: var(--gold); }
.profile-hero p:last-child { margin-bottom: 0; color: var(--muted); }.profile-hero .secondary-btn { flex: 0 0 auto; text-decoration: none; }
.profile-signed-out { display: grid; grid-template-columns: 1fr .65fr; align-items: center; min-height: 380px; padding: clamp(28px, 6vw, 60px); border: 1px solid var(--line); border-radius: 20px; background: radial-gradient(circle at 85% 30%, rgba(217,156,46,.16), transparent 35%), #14110e; }
.profile-signed-out[hidden], .profile-layout[hidden] { display: none; }
.profile-signed-out h2 { font-size: clamp(30px, 4vw, 46px); }.profile-signed-out p { color: var(--muted); }.profile-signed-out img { justify-self: center; max-height: 310px; filter: drop-shadow(0 0 18px rgba(217,156,46,.4)); }
.profile-signed-out .primary, .profile-text-link { display: inline-block; margin: 15px 12px 0 0; text-decoration: none; }.profile-text-link { color: var(--gold); }
.profile-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); align-items: start; gap: 24px; }
.profile-sidebar, .profile-panel, .profile-stats article { border: 1px solid #392f22; border-radius: 16px; background: #14110e; }
.profile-sidebar { position: sticky; top: 22px; padding: 28px; text-align: center; }
.profile-avatar { display: grid; place-items: center; width: 82px; height: 82px; margin: 0 auto 15px; border: 2px solid #815f27; border-radius: 50%; background: linear-gradient(135deg, #e9ad3b, #8d5818); color: #15100a; font-size: 27px; font-weight: 900; box-shadow: 0 0 22px rgba(217,156,46,.35); }
.profile-photo-wrap { display: grid; justify-items: center; margin-bottom: 15px; }
.profile-photo-wrap .profile-avatar { grid-area: 1 / 1; margin-bottom: 0; }
.profile-photo { grid-area: 1 / 1; width: 82px; height: 82px; border: 2px solid #815f27; border-radius: 50%; object-fit: cover; background: #0e0d0b; box-shadow: 0 0 22px rgba(217,156,46,.35); }
.profile-photo-button, .profile-photo-remove { min-height: 40px; margin-top: 10px; padding: 9px 12px; border: 1px solid #5f4726; border-radius: 8px; background: transparent; color: #efc878; font: inherit; font-size: 13px; cursor: pointer; }
.profile-photo-button:hover, .profile-photo-button:focus-visible, .profile-photo-remove:hover, .profile-photo-remove:focus-visible { border-color: var(--gold); background: rgba(217,156,46,.09); outline: 2px solid transparent; }
.profile-photo-remove { margin-top: 6px; color: #e7a798; }
.profile-photo-help { max-width: 190px; margin: 7px 0 0 !important; color: var(--muted); font-size: 11px; line-height: 1.4; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.profile-sidebar h2 { margin: 0 0 5px; font-size: 22px; }.profile-sidebar > p { margin: 0; overflow-wrap: anywhere; color: var(--muted); }
.profile-sidebar .profile-display-username { margin-bottom: 5px; color: #ddb365; font-size: 13px; }
.profile-verification { display: inline-block; margin-top: 9px; color: #d59a8b; font-size: 12px; }.profile-verification.verified { color: #69d38b; }
.profile-menu { display: flex; height: auto; max-width: none; margin: 25px 0; padding: 15px 0; flex-direction: column; align-items: stretch; border-top: 1px solid #332a20; border-bottom: 1px solid #332a20; text-align: left; }
.profile-menu a { min-height: 42px; padding: 11px; border-radius: 8px; color: var(--muted); text-decoration: none; }.profile-menu a:hover, .profile-menu a.active { background: rgba(217,156,46,.09); color: #f2d294; }
.profile-logout { width: 100%; min-height: 44px; border: 1px solid #714335; border-radius: 8px; background: transparent; color: #e7a798; }
.profile-main { display: grid; gap: 20px; min-width: 0; }.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }.profile-stats article { padding: 21px; }.profile-stats span, .profile-panel-heading p { color: var(--muted); }.profile-stats strong { display: block; margin-top: 8px; color: #efc878; font-size: 32px; }
.profile-panel { padding: clamp(22px, 4vw, 35px); }.profile-panel-heading { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 25px; }.profile-panel-heading h2, .profile-panel-heading p { margin: 0 0 6px; }.profile-panel-heading > span { align-self: start; padding: 6px 9px; border: 1px solid #5f4726; border-radius: 999px; color: #ddb365; font-size: 12px; }
.profile-form { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; gap: 16px 20px; }.profile-form label { color: #c5bdb2; }.profile-form input { min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: 8px; background: #0e0d0b; color: #fff; }.profile-form button { grid-column: 2; justify-self: start; }
@media (max-width: 800px) { .profile-layout { grid-template-columns: 1fr; }.profile-sidebar { position: static; }.profile-menu { display: grid; grid-template-columns: repeat(2, 1fr); gap: 5px; }.profile-signed-out { grid-template-columns: 1fr; }.profile-signed-out img { max-height: 230px; } }
@media (max-width: 540px) { .profile-hero { align-items: flex-start; flex-direction: column; }.profile-stats { grid-template-columns: 1fr; }.profile-form { grid-template-columns: 1fr; }.profile-form button { grid-column: 1; width: 100%; }.profile-panel-heading { flex-direction: column; }.profile-panel-heading > span { align-self: flex-start; } }
@media (max-width: 420px) { .password-rules { grid-template-columns: 1fr; } }
