/* Iteron Solo — poarta de autentificare + panou cont.
   „Tactile & Crisp Ocean”: suprafețe albe, borduri 2px, lip 4px pe butoane,
   accent Ocean Azure, border-bottom 4px solid pe carduri. */

/* ================= poarta (overlay full-screen) ================= */

.auth-gate {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(5, 7, 7, 0.78);
  backdrop-filter: blur(10px);
  overflow-y: auto;
}

.auth-card {
  width: 100%; max-width: 420px;
  background: linear-gradient(180deg, var(--surface, #161717), var(--surface-2, #1F2120));
  border: 1.5px solid var(--line, rgba(232, 224, 210, .12));
  border-radius: 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 24px 50px rgba(0, 0, 0, .65);
  padding: 30px 28px 24px;
  text-align: center;
}
.auth-card h1 {
  margin: 12px 0 4px;
  font-size: 24px;
  font-weight: 800;
  color: var(--text, #E8E0D2);
}
.auth-logo svg { width: 52px; height: 52px; filter: drop-shadow(0 6px 14px rgba(45, 212, 191, .28)); }

.auth-sub {
  margin: 0 0 18px;
  font-size: 13.5px;
  color: var(--muted, #A29C91);
}

.auth-form { display: flex; flex-direction: column; gap: 12px; text-align: left; }

.auth-f {
  display: flex; flex-direction: column; gap: 5px;
  font-size: 12.5px; font-weight: 700;
  color: var(--muted, #A29C91);
  letter-spacing: 0.02em;
}
.auth-f input {
  font: inherit;
  padding: 12px 14px;
  border: 1.5px solid var(--line, rgba(232, 224, 210, .12));
  border-radius: 14px;
  background: var(--code-bg, #111312);
  color: var(--text, #E8E0D2);
}
.auth-f input:focus-visible {
  outline: none;
  border-color: var(--accent, #2DD4BF);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, .16);
}

.auth-form .solo-btn.primary {
  margin-top: 8px;
  width: 100%;
}

.auth-err {
  padding: 10px 12px;
  border: 1.5px solid rgba(248, 113, 113, .4);
  border-radius: 12px;
  background: rgba(248, 113, 113, .12);
  color: #FECACA;
  font-size: 13px;
  text-align: center;
}

.auth-hint {
  font-size: 12.5px;
  color: var(--muted, #A29C91);
  text-align: center;
}

.auth-links {
  display: flex; align-items: center; justify-content: center;
  gap: 8px 14px; flex-wrap: wrap;
  margin-top: 4px;
}

.auth-link {
  appearance: none;
  background: none;
  border: none;
  padding: 4px 6px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent, #006194);
  cursor: pointer;
}
.auth-link:hover { text-decoration: underline; }

.auth-legal {
  margin: 16px 0 0;
  font-size: 11.5px;
  color: var(--text-dim, #5b7286);
}
.auth-legal a { color: var(--accent, #006194); font-weight: 700; }

/* ================= FAB buton cont ================= */

.account-fab {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 90;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--line, rgba(232, 224, 210, .14));
  border-radius: 16px;
  background: linear-gradient(180deg, var(--surface-2, #1F2120), var(--surface, #161717));
  color: var(--accent, #2DD4BF);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 12px 24px -8px rgba(0, 0, 0, .85);
  transition: transform .12s ease, border-color .12s ease;
}
.account-fab svg { width: 22px; height: 22px; display: block; }
.account-fab:hover { border-color: rgba(45, 212, 191, .45); transform: translateY(-2px); }
.account-fab:active { transform: translateY(1px); }

/* ================= panou cont ================= */

.account-panel {
  position: fixed; inset: 0; z-index: 150;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 16px;
  background: rgba(5, 7, 7, 0.78);
  backdrop-filter: blur(8px);
}
.account-panel-card {
  width: 100%; max-width: 440px;
  max-height: 88vh; overflow-y: auto;
  background: linear-gradient(180deg, var(--surface, #161717), var(--surface-2, #1F2120));
  border: 1.5px solid var(--line, rgba(232, 224, 210, .12));
  border-radius: 24px 24px 0 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 24px 50px rgba(0, 0, 0, .75);
  padding: 24px 24px calc(24px + env(safe-area-inset-bottom));
}
@media (min-width: 640px) {
  .account-panel { align-items: center; }
  .account-panel-card { border-radius: 24px; padding: 24px; }
}

.account-head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 18px;
}
.account-head svg {
  width: 46px; height: 46px; padding: 11px; flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent-soft, rgba(45, 212, 191, .14));
  border: 1.5px solid rgba(45, 212, 191, .3);
  color: var(--accent, #2DD4BF);
}
.account-head > div {
  display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; text-align: left;
}
.account-head b {
  font-size: 18px; font-weight: 800; color: var(--text, #E8E0D2);
  line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.account-head small {
  font-size: 13px; color: var(--muted, #A29C91);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.account-head h2 { margin: 0; font-size: 18px; font-weight: 800; color: var(--text, #E8E0D2); }
.account-close {
  appearance: none;
  width: 100%; height: 44px; margin-top: 6px;
  background: var(--surface, #161717);
  border: 1.5px solid var(--line, rgba(232, 224, 210, .12));
  border-radius: 14px;
  font: inherit; font-size: 14px; font-weight: 700;
  cursor: pointer; color: var(--muted, #A29C91);
  transition: color .12s ease, background .12s ease;
}
.account-close:hover { background: var(--surface-3, #272927); color: var(--text, #E8E0D2); }

.account-section {
  border: 1.5px solid var(--line, rgba(232, 224, 210, .1));
  background: rgba(0, 0, 0, .18);
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 12px;
  text-align: left;
}
.account-section[data-sec="menu"] {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.account-section[data-sec="menu"] .solo-btn { width: 100%; padding: 10px 12px; font-size: 13.5px; }
.account-section h3 {
  margin: 0 0 10px;
  font-size: 12.5px; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted, #A29C91);
}
.account-section .auth-form { gap: 10px; }

.account-msg {
  margin: 8px 0 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent, #2DD4BF);
  text-align: center;
}

.solo-btn.danger {
  background: rgba(248, 113, 113, .16);
  border: 1.5px solid rgba(248, 113, 113, .4);
  color: #FECACA;
}
.solo-btn.danger:hover { background: rgba(248, 113, 113, .25); }
.solo-btn.danger:active { transform: translateY(1px); }
