/* =========================================================
   Tugananet — Área do cliente (login, cadastro, painel)
   Usa as variáveis, botões e campos de /assets/css/style.css.
   ========================================================= */
.svg-sprite { position: absolute; }

.auth-body { display: flex; flex-direction: column; min-height: 100vh; }

/* Cabeçalho */
.auth-header {
  position: sticky; top: 0; z-index: 50; height: 76px;
  background: rgba(3, 11, 27, 0.82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 140, 255, 0.18);
}
.auth-header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.auth-header .brand img { width: 180px; }
.auth-header-actions { display: flex; align-items: center; gap: 12px; }

/* Conteúdo */
.auth-main {
  flex: 1; padding: 56px 0 72px; position: relative; isolation: isolate;
}
.auth-main::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(520px 360px at 85% 10%, rgba(0, 140, 255, 0.16), transparent 70%),
    radial-gradient(420px 300px at 10% 90%, rgba(255, 121, 0, 0.10), transparent 70%);
}

.auth-card {
  position: relative; max-width: 480px; margin: 0 auto; padding: 36px 34px;
  border-radius: 20px; background: var(--bg-card); border: 1px solid var(--border);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.auth-card::before {
  content: ""; position: absolute; left: 34px; right: 34px; top: -1px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--blue-light), var(--orange), transparent); opacity: 0.8;
}
.auth-card-wide { max-width: 640px; }
.auth-card h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; margin-bottom: 10px; }
.auth-lead { color: var(--text-2); margin-bottom: 24px; }
.auth-form { display: grid; gap: 18px; }
.auth-form .form-hint { margin-top: -4px; }

.field-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.field-link { font-size: 0.85rem; color: var(--blue-light); }
.field-link:hover, .auth-switch a:hover, .auth-legal a:hover, .auth-alert a:hover { text-decoration: underline; }

.password-wrap { position: relative; }
.password-wrap input { padding-right: 52px; }
.password-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 8px;
  background: transparent; color: var(--text-2); cursor: pointer;
}
.password-toggle:hover, .password-toggle[aria-pressed="true"] { color: var(--blue-light); background: rgba(0, 140, 255, 0.1); }

/* Alertas */
.auth-alert {
  display: flex; gap: 10px; align-items: flex-start; max-width: 480px; margin: 0 auto 20px;
  padding: 14px 16px; border-radius: 10px; font-size: 0.92rem; line-height: 1.5;
  border: 1px solid var(--border-strong); background: rgba(0, 140, 255, 0.1);
}
.auth-card .auth-alert { max-width: none; margin: 0 0 20px; }
.auth-alert .icon { color: var(--blue-light); margin-top: 2px; }
.auth-alert a { color: var(--blue-light); font-weight: 600; }
.auth-alert.is-error { background: rgba(255, 107, 107, 0.1); border-color: rgba(255, 107, 107, 0.5); }
.auth-alert.is-error .icon { color: #FF8A8A; }
.auth-alert.is-success { background: rgba(43, 179, 120, 0.12); border-color: rgba(43, 179, 120, 0.55); }
.auth-alert.is-success .icon { color: #4FD1A1; }

.auth-divider { display: flex; align-items: center; gap: 12px; margin: 26px 0 16px; color: var(--text-2); font-size: 0.88rem; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-switch { margin-top: 20px; text-align: center; font-size: 0.92rem; color: var(--text-2); }
.auth-switch a, .auth-legal a { color: var(--blue-light); font-weight: 600; }
.auth-legal { text-align: center; font-size: 0.82rem; color: var(--text-2); }

/* Mensagens */
.auth-message { text-align: center; display: grid; gap: 12px; }
.auth-message .auth-lead { margin-bottom: 8px; }
.auth-message-icon {
  width: 60px; height: 60px; margin: 0 auto 4px; display: grid; place-items: center; border-radius: 50%;
  font-size: 1.6rem; color: var(--blue-light); background: rgba(0, 140, 255, 0.12); border: 1px solid var(--border-strong);
}
.auth-message.is-success .auth-message-icon { color: #4FD1A1; background: rgba(43, 179, 120, 0.12); border-color: rgba(43, 179, 120, 0.55); }
.auth-message.is-error .auth-message-icon { color: #FF8A8A; background: rgba(255, 107, 107, 0.1); border-color: rgba(255, 107, 107, 0.5); }

.btn.is-loading { opacity: 0.75; pointer-events: none; }

/* Painel */
.dash { max-width: 1120px; margin: 0 auto; }
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.dash-head h1 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 800; margin-bottom: 6px; }
.dash-head .auth-lead { margin: 0; }
.dash-profile {
  display: flex; gap: 24px; align-items: flex-start; padding: 28px; border-radius: 20px;
  background: var(--bg-card); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.dash-avatar {
  flex: none; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 16px; font-size: 1.8rem;
  color: var(--orange); background: rgba(255, 121, 0, 0.1); border: 1px solid rgba(255, 121, 0, 0.45);
}
.dash-data { flex: 1; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 24px; }
.dash-data dt { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); margin-bottom: 4px; }
.dash-data dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.dash-data code { font: 0.9rem ui-monospace, Consolas, monospace; color: var(--blue-light); }
.status-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; border: 1px solid; }
.status-badge.is-active { color: #4FD1A1; border-color: rgba(43, 179, 120, 0.6); background: rgba(43, 179, 120, 0.12); }
.status-badge.is-pending { color: var(--orange-light); border-color: rgba(255, 121, 0, 0.6); background: rgba(255, 121, 0, 0.1); }
.status-badge.is-suspended { color: #FF8A8A; border-color: rgba(255, 107, 107, 0.6); background: rgba(255, 107, 107, 0.1); }

.dash-subtitle { font-size: 1.2rem; font-weight: 700; margin: 40px 0 16px; }
.dash-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.dash-card {
  position: relative; display: grid; gap: 10px; align-content: start; padding: 24px 22px;
  border-radius: var(--radius); background: var(--bg-card); border: 1px dashed rgba(0, 140, 255, 0.3); cursor: default;
}
.dash-card h3 { font-size: 1.05rem; font-weight: 700; }
.dash-card p { font-size: 0.88rem; color: var(--text-2); }
.dash-card .badge-soon { justify-self: start; }
.dash-card .service-icon { opacity: 0.85; }

/* Rodapé */
.auth-footer { padding: 22px 0; border-top: 1px solid rgba(0, 140, 255, 0.14); font-size: 0.85rem; color: var(--text-2); text-align: center; }
.auth-footer a:hover { color: var(--text); }

/* Responsivo */
@media (max-width: 1000px) {
  .dash-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-data { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .auth-header { height: 68px; }
  .auth-header .brand img { width: 148px; }
  .auth-back { display: none; }
  .auth-header-actions .lang-btn { min-width: 40px; min-height: 40px; }
  .auth-main { padding: 32px 0 48px; }
  .auth-card { padding: 28px 20px; }
  .auth-card::before { left: 20px; right: 20px; }
  .dash-profile { flex-direction: column; padding: 22px 18px; }
  .dash-data { grid-template-columns: 1fr; }
  .dash-cards { grid-template-columns: 1fr; }
  .dash-head form, .dash-head .btn { width: 100%; }
}
@media (max-width: 360px) {
  .auth-header .brand img { width: 128px; }
  .auth-header-actions .lang-btn { min-width: 34px; padding: 0 4px; }
}
