/* Poppo - Nordisk Blå design system - auth & dashboard */
:root{
  --poppo-bg:#FFFFFF;
  --poppo-surface:#F4F5F9;
  --poppo-ink:#0F1222;
  --poppo-accent:#1D3FB0;
  --poppo-accent-dark:#15308A;
  --poppo-border:#E2E5F0;
  --poppo-text-secondary:#5B5F73;
  --poppo-error:#C22C2C;
  --poppo-radius-sm:8px;
  --poppo-radius-md:14px;
  --poppo-radius-pill:999px;
}

.poppo-auth-split, .poppo-listings-wrap, .poppo-listing-form-wrap {
  font-family: 'Poppins', sans-serif;
  color: var(--poppo-ink);
}

/* Split-screen auth layout */
.poppo-auth-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 90px);
}
@media (max-width: 900px) {
  .poppo-auth-split { grid-template-columns: 1fr; min-height: auto; }
  .poppo-auth-panel { min-height: 160px; padding: 32px 24px !important; }
}

.poppo-auth-panel {
  position: relative;
  background: linear-gradient(135deg, var(--poppo-ink) 0%, var(--poppo-accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px;
  overflow: hidden;
}
.poppo-auth-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.08) 0, transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.10) 0, transparent 40%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0 2px, transparent 2px 40px);
}
.poppo-auth-panel-inner {
  position: relative;
  z-index: 1;
  max-width: 380px;
  color: #fff;
}
.poppo-auth-logo {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 40px;
  letter-spacing: -0.02em;
}
.poppo-auth-panel-inner h2 {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 16px;
}
.poppo-auth-panel-inner p {
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
  margin: 0;
}

.poppo-auth-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  background: var(--poppo-bg);
}
.poppo-auth-card {
  width: 100%;
  max-width: 400px;
}
.poppo-auth-card h1 {
  font-size: 26px;
  font-weight: 600;
  margin: 0 0 8px;
  line-height: 1.15;
}
.poppo-auth-card > p.poppo-auth-subtitle {
  color: var(--poppo-text-secondary);
  margin: 0 0 32px;
  font-size: 15px;
}

.poppo-field { margin-bottom: 18px; }
.poppo-field label,
.poppo-auth-card label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--poppo-ink);
}
.poppo-field input,
.poppo-auth-card input[type=text],
.poppo-auth-card input[type=email],
.poppo-auth-card input[type=password] {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--poppo-border);
  border-radius: var(--poppo-radius-sm);
  font-size: 15px;
  font-family: inherit;
  box-sizing: border-box;
  background: #fff;
  transition: border-color .15s;
}
.poppo-field input:focus,
.poppo-auth-card input:focus {
  outline: none;
  border-color: var(--poppo-accent);
  box-shadow: 0 0 0 3px rgba(29,63,176,0.12);
}

.poppo-auth-card button,
.poppo-auth-card input[type=submit],
.poppo-btn,
.poppo-listing-form-wrap button {
  width: 100%;
  background: var(--poppo-accent);
  color: #fff;
  border: none;
  padding: 13px 20px;
  border-radius: var(--poppo-radius-pill);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s;
  display: inline-block;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}
.poppo-auth-card button:hover,
.poppo-btn:hover,
.poppo-listing-form-wrap button:hover {
  background: var(--poppo-accent-dark);
}

.poppo-auth-footer-link {
  margin-top: 24px;
  font-size: 14px;
  color: var(--poppo-text-secondary);
  text-align: center;
}
.poppo-auth-footer-link a, .poppo-auth-card a {
  color: var(--poppo-accent);
  text-decoration: none;
  font-weight: 600;
}
.poppo-auth-footer-link a:hover, .poppo-auth-card a:hover { text-decoration: underline; }

.poppo-auth-error {
  background: #FCEEEE;
  color: var(--poppo-error);
  border-radius: var(--poppo-radius-sm);
  padding: 12px 16px;
  font-size: 14px;
  margin-bottom: 20px;
}
.poppo-auth-error ul { margin: 0; padding-left: 18px; }

.poppo-auth-notice {
  background: #E9EEFB;
  color: var(--poppo-accent-dark);
  border-radius: var(--poppo-radius-sm);
  padding: 12px 16px;
  font-size: 14px;
  margin-bottom: 20px;
}

/* Simple non-split box (used for account overview) */
.poppo-simple-box {
  max-width: 460px;
  margin: 64px auto;
  padding: 36px;
  border: 1px solid var(--poppo-border);
  border-radius: var(--poppo-radius-md);
  box-shadow: 0 8px 30px -12px rgba(29,63,176,0.18);
}
.poppo-simple-box h2 { font-size: 22px; font-weight: 600; margin: 0 0 20px; }
.poppo-simple-box p { margin: 0 0 14px; font-size: 15px; }
.poppo-simple-box a { color: var(--poppo-accent); font-weight: 600; text-decoration: none; }
.poppo-simple-box a:hover { text-decoration: underline; }

/* Dashboard: listings */
.poppo-listings-wrap, .poppo-listing-form-wrap {
  max-width: 780px;
  margin: 48px auto;
  padding: 0 24px;
}
.poppo-listings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}
.poppo-listings-header h2 { font-size: 24px; font-weight: 600; margin: 0; }
.poppo-btn { width: auto !important; padding: 10px 22px !important; display: inline-block !important; }

.poppo-listings-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--poppo-border);
  border-radius: var(--poppo-radius-md);
  overflow: hidden;
}
.poppo-listings-table th {
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--poppo-text-secondary);
  background: var(--poppo-surface);
  padding: 12px 16px;
}
.poppo-listings-table td {
  padding: 14px 16px;
  border-top: 1px solid var(--poppo-border);
  font-size: 14px;
}
.poppo-listings-table a { color: var(--poppo-accent); text-decoration: none; font-weight: 600; }
.poppo-listings-table a:hover { text-decoration: underline; }

.poppo-status-pill {
  display: inline-block;
  padding: 3px 12px;
  border-radius: var(--poppo-radius-pill);
  font-size: 12px;
  font-weight: 600;
}
.poppo-status-publish { background: #E9EEFB; color: var(--poppo-accent-dark); }
.poppo-status-draft { background: #EFEFEF; color: #5B5F73; }
.poppo-status-pending { background: #FEF3E2; color: #9A6400; }

/* Listing form */
.poppo-listing-form-wrap h2 { font-size: 24px; font-weight: 600; margin: 0 0 28px; }
.poppo-listing-form-wrap label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.poppo-listing-form-wrap input[type=text],
.poppo-listing-form-wrap input[type=number],
.poppo-listing-form-wrap input[type=file],
.poppo-listing-form-wrap select,
.poppo-listing-form-wrap textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--poppo-border);
  border-radius: var(--poppo-radius-sm);
  font-size: 15px;
  font-family: inherit;
  box-sizing: border-box;
  margin-bottom: 18px;
}
.poppo-listing-form-wrap input:focus,
.poppo-listing-form-wrap select:focus,
.poppo-listing-form-wrap textarea:focus {
  outline: none;
  border-color: var(--poppo-accent);
  box-shadow: 0 0 0 3px rgba(29,63,176,0.12);
}
.poppo-listing-form-wrap button { width: auto; padding: 12px 28px; }
.poppo-checkbox {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  font-weight: 400 !important;
  margin-right: 16px;
  margin-bottom: 8px;
  font-size: 14px;
  width: auto !important;
}
