/**
 * conta.css — Estilos da Área do Convidado
 * Evento — Paleta Marfim e Oliva
 */

:root {
  --acc-ink: #3d352c;
  --acc-soft-ink: #655a4e;
  --acc-muted: #6b6055;
  --acc-paper: #f8f4ee;
  --acc-paper-card: #fffdfa;
  --acc-linen: #ede5da;
  --acc-moss: #48543f;
  --acc-moss-dark: #2c3526;
  --acc-sage: #758069;
  --acc-gold: #b48e56;
  --acc-gold-light: #f4ecdd;
  --acc-gold-text: #80623a;
  --acc-rose: #a56760;
  --acc-danger: #9e3d34;
  --acc-danger-bg: #fdf3f2;
  --acc-success: #366c45;
  --acc-success-bg: #eef7f0;
  --acc-border: rgba(72, 84, 63, 0.16);
  --acc-shadow: 0 4px 20px rgba(44, 53, 38, 0.07);
  --acc-radius: 12px;
  --acc-radius-sm: 8px;
}

[hidden] {
  display: none !important;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--acc-paper);
  color: var(--acc-ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.account-header {
  background: var(--acc-paper-card);
  border-bottom: 1px solid var(--acc-border);
  padding: 12px 20px;
  position: sticky;
  top: 0;
  z-index: 30;
}

.header-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--acc-moss-dark);
}

.brand-monogram {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--acc-moss);
  color: #fff;
  border-radius: 50%;
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 0.95rem;
}

.brand-title {
  font-family: Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--acc-soft-ink);
  text-decoration: none;
  transition: color 150ms ease;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.header-link:hover {
  color: var(--acc-moss);
}

/* Container */
.account-container {
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 16px 48px;
  flex: 1;
}

/* Notice Card */
.notice-card {
  background: var(--acc-gold-light);
  border: 1px solid rgba(180, 142, 86, 0.35);
  border-left: 4px solid var(--acc-gold);
  border-radius: var(--acc-radius-sm);
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 0.88rem;
  color: var(--acc-ink);
  line-height: 1.45;
}

.notice-content strong {
  color: var(--acc-gold-text);
  display: block;
  margin-bottom: 2px;
}

/* Base Card */
.card {
  background: var(--acc-paper-card);
  border: 1px solid var(--acc-border);
  border-radius: var(--acc-radius);
  box-shadow: var(--acc-shadow);
  padding: clamp(20px, 4vw, 32px);
  margin-bottom: 24px;
}

.card-header {
  text-align: center;
  margin-bottom: 20px;
}

.card-header h2 {
  font-family: Georgia, serif;
  font-size: 1.45rem;
  color: var(--acc-moss-dark);
  margin: 8px 0;
}

.card-header p {
  font-size: 0.9rem;
  color: var(--acc-soft-ink);
  margin: 0;
}

.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--acc-moss);
  background: var(--acc-linen);
  padding: 3px 10px;
  border-radius: 999px;
}

/* Abas de Autenticação */
.auth-tabs {
  display: flex;
  border-bottom: 2px solid var(--acc-linen);
  margin-bottom: 24px;
}

.tab-btn {
  flex: 1;
  padding: 12px 8px;
  min-height: 48px;
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--acc-muted);
  cursor: pointer;
  transition: all 180ms ease;
  text-align: center;
}

.tab-btn:hover {
  color: var(--acc-ink);
}

.tab-btn.is-active {
  color: var(--acc-moss-dark);
  border-bottom-color: var(--acc-moss);
}

/* Formulários */
.form-grid {
  display: grid;
  gap: 16px;
}

.form-intro {
  font-size: 0.92rem;
  color: var(--acc-soft-ink);
  margin-bottom: 4px;
}

.field-group {
  display: grid;
  gap: 6px;
}

.field-group label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--acc-ink);
}

.field-group input {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid rgba(72, 84, 63, 0.28);
  border-radius: var(--acc-radius-sm);
  background: #ffffff;
  color: var(--acc-ink);
  font-size: 0.95rem;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.field-group input:focus {
  outline: none;
  border-color: var(--acc-moss);
  box-shadow: 0 0 0 3px rgba(72, 84, 63, 0.15);
}

.field-hint {
  font-size: 0.78rem;
  color: var(--acc-muted);
}

.input-password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-password-wrap input {
  padding-right: 48px;
}

.btn-toggle-pw {
  position: absolute;
  right: 2px;
  top: 2px;
  bottom: 2px;
  width: 44px;
  background: transparent;
  border: 0;
  font-size: 1.1rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--acc-soft-ink);
  border-radius: 0 var(--acc-radius-sm) var(--acc-radius-sm) 0;
}

.field-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 4px;
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--acc-soft-ink);
}

.field-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--acc-moss);
  cursor: pointer;
}

.field-checkbox a {
  color: var(--acc-moss);
  font-weight: 600;
  text-decoration: underline;
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 150ms ease, background-color 150ms ease, opacity 150ms ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.btn-primary {
  width: 100%;
  background: var(--acc-moss);
  color: #fff;
  box-shadow: 0 4px 14px rgba(44, 53, 38, 0.16);
}

.btn-primary:hover:not(:disabled) {
  background: var(--acc-moss-dark);
}

.btn-secondary {
  background: var(--acc-linen);
  color: var(--acc-ink);
  border-color: var(--acc-border);
}

.btn-secondary:hover {
  background: #fff;
}

/* Status Messages */
.status-msg {
  min-height: 20px;
  margin: 6px 0 0;
  font-size: 0.88rem;
  text-align: center;
  line-height: 1.4;
}

.status-msg.is-error {
  color: var(--acc-danger);
  font-weight: 600;
}

.status-msg.is-success {
  color: var(--acc-success);
  font-weight: 600;
}

/* Área Logada - Perfil */
.profile-card {
  margin-bottom: 20px;
}

.profile-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--acc-border);
}

.profile-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--acc-linen);
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  flex: none;
}

.profile-info {
  flex: 1;
  min-width: 200px;
}

.profile-info h2 {
  font-family: Georgia, serif;
  font-size: 1.4rem;
  color: var(--acc-moss-dark);
  margin: 0;
}

.profile-info p {
  font-size: 0.88rem;
  color: var(--acc-soft-ink);
  margin: 2px 0 6px;
}

.verification-badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}

.badge-verified {
  background: var(--acc-success-bg);
  color: var(--acc-success);
  border: 1px solid rgba(54, 108, 69, 0.25);
}

.badge-unverified {
  background: var(--acc-gold-light);
  color: var(--acc-gold-text);
  border: 1px solid rgba(180, 142, 86, 0.3);
}

.btn-logout {
  min-height: 44px;
  padding: 8px 16px;
  font-size: 0.86rem;
}

.profile-details {
  padding-top: 14px;
}

.account-help-text {
  font-size: 0.86rem;
  color: var(--acc-soft-ink);
  margin: 0;
}

/* Lista de Envios */
.uploads-card {
  padding: clamp(18px, 4vw, 28px);
}

.uploads-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--acc-border);
  margin-bottom: 16px;
}

.uploads-header h3 {
  font-family: Georgia, serif;
  font-size: 1.35rem;
  color: var(--acc-moss-dark);
  margin: 0;
}

.sub-text {
  font-size: 0.84rem;
  color: var(--acc-soft-ink);
  margin: 2px 0 0;
}

.filter-controls select {
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--acc-border);
  border-radius: var(--acc-radius-sm);
  background: #fff;
  color: var(--acc-ink);
  font-size: 0.86rem;
}

.uploads-list {
  display: grid;
  gap: 12px;
  min-height: 120px;
}

.upload-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--acc-border);
  border-radius: var(--acc-radius-sm);
  background: #ffffff;
}

.item-visual-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 220px;
}

.item-icon {
  font-size: 1.5rem;
}

.item-texts {
  display: grid;
  gap: 2px;
}

.item-title {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--acc-ink);
  word-break: break-all;
}

.item-meta {
  font-size: 0.78rem;
  color: var(--acc-muted);
}

.item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-item {
  min-height: 40px;
  padding: 6px 14px;
  font-size: 0.82rem;
  border-radius: 6px;
}

.empty-msg {
  text-align: center;
  padding: 32px 16px;
  color: var(--acc-muted);
  font-style: italic;
  font-size: 0.92rem;
}

.uploads-footer-note {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--acc-border);
}

.uploads-footer-note p {
  font-size: 0.8rem;
  color: var(--acc-muted);
  line-height: 1.45;
  margin: 0;
}

/* Modal de Prévia */
.preview-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(22, 25, 20, 0.88);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  padding: 16px;
  overflow-y: auto;
}

.modal-dialog {
  width: 100%;
  max-width: 640px;
  background: var(--acc-paper-card);
  border: 1px solid var(--acc-border);
  border-radius: var(--acc-radius);
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--acc-muted);
}

.modal-close:hover {
  color: var(--acc-ink);
}

.modal-dialog h3 {
  font-family: Georgia, serif;
  font-size: 1.3rem;
  color: var(--acc-moss-dark);
  margin: 0 0 16px;
}

.media-container {
  width: 100%;
  max-height: 480px;
  min-height: 200px;
  display: grid;
  place-items: center;
  background: #000;
  border-radius: var(--acc-radius-sm);
  overflow: hidden;
  margin-bottom: 18px;
}

.media-container img,
.media-container video {
  max-width: 100%;
  max-height: 480px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Footer */
.account-footer {
  text-align: center;
  padding: 24px 16px;
  border-top: 1px solid var(--acc-border);
  background: var(--acc-paper-card);
  font-size: 0.82rem;
  color: var(--acc-soft-ink);
}

.account-footer p {
  margin: 4px 0;
}

.account-footer a {
  color: var(--acc-ink);
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 540px) {
  .header-link, .account-footer a {
    display: inline-flex;
    align-items: center;
    min-width: 44px;
    min-height: 44px;
  }

  .profile-header {
    flex-direction: column;
    text-align: center;
  }
  .btn-logout {
    width: 100%;
  }
  .upload-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .item-actions {
    width: 100%;
  }
  .item-actions .btn {
    flex: 1;
  }
}

.brand-logo { display: block; height: 26px; width: auto; }
