/* ============================================================
   NUTS PREMIUM - conta.css
   Estilos para login, cadastro, recuperação de senha e dashboard
   ============================================================ */

/* ── Seção menor (auth pages) ─────────────────────────────── */
.np-section--sm {
  padding: 60px 0;
  min-height: calc(100vh - 280px);
  display: flex;
  align-items: flex-start;
}

/* ── Wrapper das páginas de autenticação ─────────────────── */
.np-auth-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
}

.np-auth-card {
  background: #fff;
  border: 1px solid #f0e8da;
  border-radius: 16px;
  padding: 44px 40px;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 4px 32px rgba(212,162,76,.10);
}

.np-auth-logo {
  text-align: center;
  font-size: 3rem;
  color: var(--np-secondary);
  margin-bottom: 16px;
}

.np-auth-title {
  font-family: var(--np-font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--np-black);
  text-align: center;
  margin: 0 0 6px;
}

.np-auth-sub {
  color: var(--np-grey);
  font-family: var(--np-font-text);
  font-size: .9rem;
  text-align: center;
  margin: 0 0 28px;
}

.np-auth-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.np-auth-switch {
  text-align: center;
  font-family: var(--np-font-text);
  font-size: .875rem;
  color: var(--np-grey);
  margin: 20px 0 0;
}
.np-auth-switch a {
  color: var(--np-secondary);
  font-weight: 600;
  text-decoration: none;
}
.np-auth-switch a:hover { text-decoration: underline; }

/* ── Campos de formulário ─────────────────────────────────── */
.np-form-group {
  margin-bottom: 18px;
}

.np-form-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--np-font-body);
  font-size: .82rem;
  font-weight: 600;
  color: var(--np-dark-grey);
  margin-bottom: 6px;
}

.np-form-label__link {
  font-weight: 400;
  color: var(--np-secondary);
  text-decoration: none;
  font-size: .78rem;
}
.np-form-label__link:hover { text-decoration: underline; }

.np-form-hint {
  display: block;
  margin-top: 4px;
  font-size: .76rem;
  color: var(--np-grey);
  font-family: var(--np-font-text);
}

.np-form-input {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #e8ddd0;
  border-radius: 8px;
  font-family: var(--np-font-text);
  font-size: .95rem;
  color: var(--np-black);
  background: #fafaf8;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  box-sizing: border-box;
}
.np-form-input:focus {
  border-color: var(--np-secondary);
  box-shadow: 0 0 0 3px rgba(212,162,76,.12);
  background: #fff;
}
.np-form-input:disabled {
  background: #f4f4f4;
  color: var(--np-grey);
  cursor: not-allowed;
}

/* Campo com botão olho */
.np-input-eye {
  position: relative;
  display: flex;
  align-items: center;
}
.np-input-eye .np-form-input {
  padding-right: 44px;
}
.np-eye-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--np-grey);
  cursor: pointer;
  font-size: 1rem;
  padding: 0;
  line-height: 1;
}
.np-eye-btn:hover { color: var(--np-secondary); }

/* ── Alertas ─────────────────────────────────────────────── */
.np-alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-family: var(--np-font-text);
  font-size: .875rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}
.np-alert--success {
  background: #edf7ed;
  color: #2d6a2d;
  border: 1px solid #b7dfb7;
}
.np-alert--danger {
  background: #fdf0f0;
  color: #8b1a1a;
  border: 1px solid #f5c6c6;
}
.np-alert--warning {
  background: #fdf8ec;
  color: #7a5a00;
  border: 1px solid #f0dfa0;
}
.np-alert--info {
  background: #edf4fd;
  color: #1a4a7a;
  border: 1px solid #b7d4f5;
}

/* ── Dashboard ───────────────────────────────────────────── */

/* Sidebar */
.np-conta-sidebar {
  background: #fff;
  border: 1px solid #f0e8da;
  border-radius: 14px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 2px 16px rgba(212,162,76,.07);
}

.np-conta-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--np-secondary), var(--np-secondary-dark));
  color: #fff;
  font-family: var(--np-font-heading);
  font-size: 2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.np-conta-sidebar__nome {
  font-family: var(--np-font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--np-black);
  margin: 0 0 4px;
}

.np-conta-sidebar__email {
  font-size: .78rem;
  color: var(--np-grey);
  font-family: var(--np-font-text);
  margin: 0 0 20px;
  word-break: break-all;
}

.np-conta-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.np-conta-nav__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  font-family: var(--np-font-body);
  font-size: .875rem;
  font-weight: 500;
  color: var(--np-dark-grey);
  text-decoration: none;
  transition: background .18s, color .18s;
}
.np-conta-nav__link:hover,
.np-conta-nav__link.active {
  background: var(--np-off-white);
  color: var(--np-secondary);
}
.np-conta-nav__link--danger { color: var(--np-danger); }
.np-conta-nav__link--danger:hover {
  background: #fdf0f0;
  color: #8b1a1a;
}
.np-conta-nav__sep {
  border: none;
  border-top: 1px solid #f0e8da;
  margin: 8px 0;
}

/* Seção do conteúdo */
.np-conta-section {
  background: #fff;
  border: 1px solid #f0e8da;
  border-radius: 14px;
  padding: 32px;
  box-shadow: 0 2px 16px rgba(212,162,76,.07);
}

.np-conta-section__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.np-conta-section__title {
  font-family: var(--np-font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--np-black);
  margin: 0 0 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--np-off-white);
}
.np-conta-section__header .np-conta-section__title {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

/* Estado vazio */
.np-conta-empty {
  text-align: center;
  padding: 48px 0;
  color: var(--np-grey);
  font-family: var(--np-font-text);
}
.np-conta-empty__icon {
  font-size: 3.5rem;
  color: #ddd;
  display: block;
  margin-bottom: 14px;
}

/* ── Lista de pedidos ─────────────────────────────────────── */
.np-pedidos-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.np-pedido-card {
  border: 1px solid #f0e8da;
  border-radius: 10px;
  overflow: hidden;
}

.np-pedido-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--np-off-white);
  padding: 10px 16px;
}

.np-pedido-card__codigo {
  font-family: var(--np-font-heading);
  font-weight: 700;
  font-size: .9rem;
  color: var(--np-black);
  letter-spacing: 1px;
}

.np-pedido-card__data {
  font-size: .78rem;
  color: var(--np-grey);
  font-family: var(--np-font-text);
}

.np-pedido-card__body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
}

.np-pedido-card__itens {
  font-size: .85rem;
  color: var(--np-grey);
  font-family: var(--np-font-text);
}

.np-pedido-card__total {
  font-family: var(--np-font-heading);
  font-weight: 700;
  color: var(--np-secondary);
  font-size: 1rem;
}

.np-pedido-card__footer {
  padding: 10px 16px;
  border-top: 1px solid #f7f4ef;
  background: #fafaf8;
}

/* ── Badges ─────────────────────────────────────────────── */
.np-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 600;
  font-family: var(--np-font-body);
  letter-spacing: .3px;
}
.np-badge--success  { background: #edf7ed; color: #2d6a2d; }
.np-badge--danger   { background: #fdf0f0; color: #8b1a1a; }
.np-badge--warning  { background: #fdf8ec; color: #7a5a00; }
.np-badge--info     { background: #edf4fd; color: #1a4a7a; }
.np-badge--secondary{ background: #f4f4f4; color: #555;    }

/* ── Endereços ──────────────────────────────────────────── */
.np-end-card {
  background: var(--np-off-white);
  border: 1px solid #f0e8da;
  border-radius: 10px;
  padding: 18px 20px;
  height: 100%;
}

.np-end-card__top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-family: var(--np-font-heading);
  font-size: .95rem;
  font-weight: 700;
  color: var(--np-black);
}

.np-end-card__text {
  font-family: var(--np-font-text);
  font-size: .85rem;
  color: #555;
  line-height: 1.7;
  margin: 0 0 14px;
}

.np-end-card__actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Formulário de endereço */
.np-end-form {
  margin-top: 28px;
  padding: 24px;
  background: var(--np-off-white);
  border: 1px solid #f0e8da;
  border-radius: 12px;
}

.np-end-form__title {
  font-family: var(--np-font-heading);
  font-weight: 700;
  margin: 0 0 20px;
  font-size: 1rem;
  color: var(--np-black);
}

/* ── Responsivo ─────────────────────────────────────────── */
@media (max-width: 991px) {
  .np-conta-sidebar {
    margin-bottom: 0;
  }
  .np-conta-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
    text-align: center;
  }
  .np-conta-nav__link {
    flex: 1;
    min-width: 120px;
    justify-content: center;
    font-size: .8rem;
    padding: 8px 10px;
  }
}

@media (max-width: 575px) {
  .np-auth-card {
    padding: 32px 22px;
  }
  .np-conta-section {
    padding: 22px 18px;
  }
  .np-conta-nav__link {
    min-width: 80px;
    font-size: .72rem;
  }
}
