/* Dalié — telas de autenticação (login, registrar, conta) */

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Jost', system-ui, -apple-system, sans-serif;
  background: var(--bg, #faf8f5);
  color: var(--text, #1a1a1a);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
}

.auth-back {
  position: absolute;
  top: 24px;
  left: 24px;
  text-decoration: none;
  color: var(--text, #1a1a1a);
  font-size: 22px;
  padding: 6px 12px;
  border-radius: 4px;
  opacity: 0.6;
}
.auth-back:hover { opacity: 1; background: rgba(0,0,0,0.04); }

.auth-card {
  max-width: 420px;
  width: 100%;
  background: #fff;
  border: 1px solid var(--border, #e6e2dc);
  border-radius: 8px;
  padding: 36px 36px 28px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.auth-logo {
  display: block;
  height: 56px;
  width: auto;
  margin: 0 auto 20px;
  color: var(--text, #1a1a1a);
}

.auth-card h1 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 28px;
  text-align: center;
  margin: 0 0 22px;
}

.auth-card form { display: flex; flex-direction: column; gap: 14px; }
.auth-card label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: #777;
}
.auth-card input {
  padding: 11px 13px;
  border: 1px solid var(--border, #e6e2dc);
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
  background: #fff;
  color: var(--text, #1a1a1a);
}
.auth-card input:focus { outline: 2px solid var(--text, #1a1a1a); outline-offset: -1px; }

/* Wrap para input[type=password] com botão de olho */
.senha-wrap {
  position: relative;
  display: block;
}
.senha-wrap input {
  width: 100%;
  padding-right: 42px;
}
.senha-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: #888;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: color 0.15s ease;
}
.senha-toggle:hover { color: var(--admin-text, #1a1a1a); }
.senha-toggle:focus { outline: 2px solid var(--admin-text, #1a1a1a); outline-offset: 1px; }

.btn-primary {
  margin-top: 8px;
  background: var(--btn-bg, #8B6347);
  color: var(--btn-text, #FAF8F5);
  border: none;
  padding: 12px 18px;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
}
.btn-primary:hover { opacity: 0.88; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-secondary {
  background: transparent;
  color: var(--text, #1a1a1a);
  border: 1px solid var(--border, #e6e2dc);
  padding: 10px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
}
.btn-secondary:hover { background: var(--bg, #faf8f5); }

.auth-msg {
  margin: 4px 0 0;
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 13px;
  background: rgba(179, 38, 30, 0.08);
  color: #b3261e;
  border-left: 3px solid #b3261e;
}
.auth-msg[data-type="ok"] {
  background: rgba(42, 140, 74, 0.1);
  color: #2a8c4a;
  border-left-color: #2a8c4a;
}

.auth-links {
  text-align: center;
  margin: 16px 0 0;
  font-size: 13px;
  color: #777;
}
.auth-links a { color: var(--text, #1a1a1a); text-decoration: none; border-bottom: 1px solid transparent; }
.auth-links a:hover { border-bottom-color: var(--text, #1a1a1a); }
.auth-sep { margin: 0 8px; opacity: 0.4; }

/* ─── Área do cliente ─── */
.conta-shell {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px;
}
.conta-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border, #e6e2dc);
}
.conta-header h1 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 28px;
  margin: 0;
}
.conta-saudacao { color: #777; font-size: 14px; margin: 4px 0 0; }

.pedidos-vazio {
  text-align: center;
  padding: 64px 24px;
  color: #777;
}
.pedidos-vazio a {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 20px;
  background: var(--btn-bg, #8B6347);
  color: var(--btn-text, #FAF8F5);
  text-decoration: none;
  border-radius: 4px;
  font-size: 13px;
}

.pedidos-grid { display: grid; gap: 14px; }
.pedido-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border, #e6e2dc);
  border-radius: 6px;
  padding: 16px 18px;
}
.pedido-ref {
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #555;
  margin: 0 0 4px;
  word-break: break-all;
}
.pedido-data { font-size: 12px; color: #777; }
.pedido-valor { font-size: 16px; font-weight: 500; }
.pedido-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.status-PAGO { background: #d4edda; color: #155724; }
.status-AGUARDANDO_PAGAMENTO { background: #fff3cd; color: #856404; }
.status-EXPIRADO, .status-CANCELADO { background: #f8d7da; color: #721c24; }

.pedido-acoes { display: flex; gap: 8px; align-items: center; }
.pedido-link {
  font-size: 13px;
  color: var(--text, #1a1a1a);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  opacity: 0.7;
}
.pedido-link:hover { opacity: 1; }
