/* ============================================================
   Auth widget — real register/login form styling.
   Isolated file, safe to remove/tweak without touching style.css
   or its build pipeline. Reuses the existing .auth-modal shell
   already defined in style.css; only adds the form-field layer.
   ============================================================ */

/* ---------- Account chip: real <a href> shown in the header while logged
   in, replacing the "دخول / ابدأ مجاناً" button. A native link rather than
   a JS click handler, so it always navigates regardless of any other
   script's click interference. ---------- */
.btn-neon-pulse.is-hidden {
  display: none !important;
}
.account-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(35, 227, 255, .16), rgba(139, 92, 246, .16));
  border: 1px solid rgba(35, 227, 255, .35);
  text-decoration: none;
  font-size: .78rem;
  font-weight: 800;
  color: #fff;
  transition: transform .15s ease, box-shadow .15s ease;
}
.account-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(35, 227, 255, .25);
}
.account-chip.is-hidden {
  display: none !important;
}
.account-chip-avatar {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #23e3ff, #8b5cf6);
  color: #06111f;
  font-weight: 900;
  font-size: .78rem;
  flex: 0 0 auto;
}
.account-chip-name {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-tabs {
  display: flex;
  gap: 8px;
  margin: 18px 0 14px;
  background: rgba(255, 255, 255, .06);
  border-radius: 12px;
  padding: 4px;
}
.auth-tab {
  flex: 1;
  border: none;
  border-radius: 9px;
  padding: 8px 6px;
  background: transparent;
  color: rgba(255, 255, 255, .66);
  font-weight: 800;
  font-size: .85rem;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.auth-tab.is-active {
  background: #23e3ff;
  color: #0b1220;
}
.auth-tabs.is-hidden {
  display: none;
}

.auth-verify-note {
  margin: 0;
  color: #aeb8c8;
  font-weight: 700;
  font-size: .85rem;
  line-height: 1.6;
  text-align: center;
}

.auth-text-btn {
  border: none;
  background: transparent;
  color: #23e3ff;
  font-weight: 800;
  font-size: .82rem;
  cursor: pointer;
  padding: 4px;
  text-align: center;
}
.auth-text-btn:hover {
  text-decoration: underline;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: right;
}
.auth-form.is-hidden {
  display: none;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: .82rem;
  font-weight: 800;
  color: #cdd6e6;
}
.auth-field input {
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .06);
  color: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: .92rem;
  font-family: inherit;
  outline: none;
  transition: border-color .15s ease, background .15s ease;
}
.auth-field input:focus {
  border-color: #23e3ff;
  background: rgba(35, 227, 255, .08);
}

.auth-error {
  background: rgba(239, 68, 68, .12);
  border: 1px solid rgba(239, 68, 68, .35);
  color: #fca5a5;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: .8rem;
  font-weight: 800;
  text-align: center;
}
.auth-error[hidden] {
  display: none;
}

.auth-submit {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #23e3ff, #38bdf8);
  color: #0b1220;
  font-weight: 900;
  font-size: .95rem;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease;
}
.auth-submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}
.auth-submit:disabled {
  opacity: .7;
  cursor: default;
  transform: none;
}

.auth-toast {
  position: fixed;
  bottom: 24px;
  right: 50%;
  transform: translateX(50%) translateY(12px);
  background: #0f172a;
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 800;
  font-size: .88rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .4);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 6000;
}
.auth-toast.is-visible {
  opacity: 1;
  transform: translateX(50%) translateY(0);
}

@media (max-width: 480px) {
  .auth-modal-content {
    margin-top: 48px;
  }
}
