/* ============================================================
   Oreon Network — Parker-style Authentication & Profile UI
   ============================================================ */

.nav-signin-ic { width: 16px; height: 16px; flex: none; }

.glogin-mini {
  display: none;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  white-space: nowrap;
}
@media (max-width: 980px) {
  .glogin-mini { display: inline-flex; }
}

.avatar-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 3px 10px 3px 3px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  cursor: pointer;
  transition: transform .3s var(--ease), border-color .25s, box-shadow .3s var(--ease);
}
.avatar-btn:hover {
  transform: translateY(-1px);
  border-color: var(--iris);
  box-shadow: 0 6px 14px -6px rgb(85 70 200 / .45);
}
.avatar-pic {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--iris-ghost);
  display: grid;
  place-items: center;
  flex: none;
}
.avatar-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-chev {
  width: 13px;
  height: 13px;
  color: var(--ink-2);
  transition: transform .25s var(--ease);
}
.avatar-btn.is-active .avatar-chev { transform: rotate(180deg); }
.avatar-btn.is-active { border-color: var(--iris); }

.profile-slot { position: relative; display: inline-flex; }

/* Profile Dropdown */
.profile-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 238px;
  padding: 7px;
  border-radius: 16px;
  background: var(--glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-pop);
  opacity: 0;
  transform: translateY(-6px) scale(.98);
  transform-origin: top right;
  pointer-events: none;
  transition: opacity .22s var(--ease), transform .22s var(--ease);
  z-index: 130;
}
.profile-menu.open { opacity: 1; transform: none; pointer-events: auto; }

.profile-menu .pm-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 11px 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}
.pm-name {
  font-family: "Clash Display", sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
  margin: 0;
}
.pm-mail {
  font-size: 11.5px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
  margin: 0;
}
.pm-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 11px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  transition: background .18s, color .18s;
}
.pm-item svg { width: 15px; height: 15px; color: var(--ink-3); flex: none; transition: color .18s; }
.pm-item:hover { background: var(--iris-ghost); color: var(--ink); }
.pm-item:hover svg { color: var(--iris-deep); }
.pm-sep { height: 1px; background: var(--line); margin: 5px 4px; }
.pm-out:hover { background: rgb(224 72 90 / .1); color: #D94052; }
.pm-out:hover svg { color: #D94052; }
.pm-warn {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 4px 6px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgb(229 160 60 / .12);
  color: #C77E14;
  font-size: 12px;
  font-weight: 500;
}
.pm-warn svg { width: 13px; height: 13px; flex: none; }

/* Dedicated Auth Pages (Parker Design layout in OREON theme) */
.auth-page {
  position: relative;
  overflow: hidden;
  min-height: calc(100dvh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 20px 80px;
}
.auth-page::before {
  content: "";
  position: absolute;
  inset: -4%;
  background: url("hosting/assets/plan-banner.png") center / cover no-repeat;
  opacity: 0.22;
  filter: saturate(1.15);
  pointer-events: none;
  animation: auth-bg-drift 18s ease-in-out infinite alternate;
}
[data-theme="dark"] .auth-page::before {
  opacity: 0.36;
}
.auth-page::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 35%, rgba(107, 90, 224, 0.12), var(--bg) 74%);
  pointer-events: none;
}
@keyframes auth-bg-drift {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to { transform: scale(1.05) translate3d(0, -10px, 0); }
}

.auth-page-card {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  padding: 16px clamp(24px, 5vw, 52px) 40px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-md);
  animation: auth-card-in 0.45s var(--ease) both;
}
@keyframes auth-card-in {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
}
[data-theme="dark"] .auth-page-card {
  background: rgba(18, 12, 38, 0.84);
  border-color: rgba(168, 85, 247, 0.22);
}
.auth-card-wide { width: min(640px, 100%); }

.auth-page-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 28px 0 30px;
}
.auth-page-head img { height: 40px; width: auto; object-fit: contain; }
.auth-page-head h1 { font-size: 1.5rem; font-weight: 700; margin: 20px 0 0; }
.auth-typing-sub {
  margin: 8px 0 0;
  min-height: 20px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
}
.auth-typing-caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 3px;
  vertical-align: -0.14em;
  background: var(--iris);
  animation: auth-caret-blink 0.9s steps(1) infinite;
}
@keyframes auth-caret-blink {
  50% { opacity: 0; }
}

.auth-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 14px;
}
.auth-col-2 { grid-column: 1 / -1; }
@media (max-width: 580px) {
  .auth-grid-2 { grid-template-columns: 1fr; }
}

.auth-banner {
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  margin-bottom: 16px;
}
.auth-banner-err {
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #fb7185;
}
.auth-banner-ok {
  background: rgba(62, 207, 142, 0.12);
  border: 1px solid rgba(62, 207, 142, 0.35);
  color: #3ecf8e;
}

.auth-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.auth-field label { font-size: 13.5px; font-weight: 600; color: var(--ink); transition: color 0.2s ease, transform 0.2s ease; }
.auth-field:focus-within label { color: var(--iris); }
.auth-pw-wrap { position: relative; display: flex; align-items: center; }
.auth-field input[type="text"],
.auth-field input[type="email"],
.auth-field input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--bg-soft);
  color: var(--ink);
  caret-color: var(--iris);
  font: inherit;
  font-size: 14px;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, transform 0.16s ease;
}
.auth-field input.is-typing {
  border-color: var(--iris);
  box-shadow: 0 0 0 3px rgba(107, 90, 224, 0.22);
}
[data-theme="dark"] .auth-field input[type="text"],
[data-theme="dark"] .auth-field input[type="email"],
[data-theme="dark"] .auth-field input[type="password"] {
  background: rgba(14, 10, 30, 0.95);
  border-color: rgba(168, 85, 247, 0.28);
}
.auth-pw-wrap input { padding-right: 42px; }
.auth-field input:focus {
  outline: none;
  border-color: #a855f7;
  box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.35);
}
.auth-field input:disabled { opacity: .65; cursor: not-allowed; }

.auth-pw-toggle {
  position: absolute;
  right: 10px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--ink-3);
  background: transparent;
  border: 0;
  cursor: pointer;
}
.auth-pw-toggle:hover { color: var(--ink); }
.auth-pw-toggle svg { width: 17px; height: 17px; }

.auth-row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 18px;
  font-size: 13.5px;
}
.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
  cursor: pointer;
}
.auth-check input { accent-color: var(--iris); width: 16px; height: 16px; }
.auth-link { color: var(--iris-deep); font-weight: 600; }
.auth-link:hover { text-decoration: underline; }

.auth-submit {
  width: 100%;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  border: 1px solid rgba(192, 132, 252, 0.45);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(109, 40, 217, 0.38);
  transition: all 0.2s ease;
}
.auth-submit:hover {
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  box-shadow: 0 12px 28px rgba(139, 92, 246, 0.55);
  transform: translateY(-1px);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 16px;
}
.auth-divider span {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--bg-tint);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 2px;
  border-radius: 999px;
  background: var(--line);
}

.auth-oauth-row { display: flex; justify-content: center; gap: 12px; }
.auth-google-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  background: var(--bg-soft);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: border-color .2s, transform .2s var(--ease);
}
.auth-google-btn:hover { border-color: var(--iris); transform: translateY(-1px); }
.auth-google-btn svg { width: 18px; height: 18px; }

.auth-foot-note {
  margin: 20px 0 0;
  text-align: center;
  font-size: 13.5px;
  color: var(--ink-2);
}

/* Account Dashboard Page */
.acct-page { padding: 56px 20px 88px; }
.acct-wrap { width: min(860px, 100%); margin-inline: auto; display: flex; flex-direction: column; gap: 22px; }
.acct-header-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.acct-user-row { display: flex; align-items: center; gap: 16px; }
.acct-avatar-lg {
  width: 64px; height: 64px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--iris);
  background: var(--iris-ghost);
  flex: none;
}
.acct-avatar-lg img { width: 100%; height: 100%; object-fit: cover; }
.acct-header-card h1 { font-size: 1.5rem; margin: 0 0 4px; }
.acct-header-card p { font-size: 14px; color: var(--ink-2); margin: 0; }

.acct-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.acct-stat-card {
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.acct-stat-label {
  display: block;
  font-family: "Fragment Mono", monospace;
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.acct-stat-val { font-weight: 600; font-size: 15px; color: var(--ink); }
.acct-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.acct-badge.is-ok { background: rgba(62, 207, 142, .15); color: #3ecf8e; }
.acct-badge.is-warn { background: rgba(245, 158, 11, .15); color: #f59e0b; }

.acct-settings-card {
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.acct-settings-card h2 { font-size: 1.25rem; margin: 0 0 16px; }
.acct-actions-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

@media (max-width: 680px) {
  .acct-meta-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .avatar-btn, .profile-menu, .pm-item, .auth-field input, .auth-submit, .auth-google-btn { transition: none; }
}
