/* ── DNC auth pages shared design (login, register, etc.) ── */

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  display: flex;
}

.dnc-page {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* ── Left panel ── */
.dnc-left {
  width: 45%;
  background-color: #1C3D2E;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 3rem;
}

.dnc-left .deco-dots {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image:
    radial-gradient(circle at 30% 20%, #fff 1px, transparent 1px),
    radial-gradient(circle at 70% 80%, #fff 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.dnc-left .deco-ring-1 {
  position: absolute;
  top: -120px; right: -120px;
  width: 400px; height: 400px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  pointer-events: none;
}

.dnc-left .deco-ring-2 {
  position: absolute;
  bottom: -80px; left: -80px;
  width: 300px; height: 300px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  pointer-events: none;
}

.dnc-left-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dnc-logo-wrap {
  width: 100px; height: 100px;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
  margin-bottom: 2rem;
}

.dnc-logo-wrap img { width: 100%; height: 100%; object-fit: cover; }

.dnc-left h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 2.25rem;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.dnc-left p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  max-width: 280px;
}

/* Ecosystem logos */
.dnc-eco {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  max-width: 340px;
}

.dnc-eco a {
  display: block;
  line-height: 0;
  border-radius: 14px;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.dnc-eco img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  display: block;
}

.dnc-eco a:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.45));
}

/* Narrow desktop widths: wrap the five logos into two rows */
@media (min-width: 768px) and (max-width: 1100px) {
  .dnc-eco { max-width: 230px; }
}

.dnc-dots {
  display: flex;
  gap: 0.5rem;
  margin-top: 3rem;
}

.dnc-dots span {
  height: 4px;
  border-radius: 99px;
  background: rgba(255,255,255,0.3);
}
.dnc-dots span:first-child {
  width: 24px;
  background: #ffffff;
}
.dnc-dots span:not(:first-child) { width: 8px; }

/* ── Right panel ── */
.dnc-right {
  flex: 1;
  background-color: #F5F7F4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
}

.dnc-card-wrap { width: 100%; max-width: 448px; }

/* Mobile logo (hidden on desktop) */
.dnc-mobile-logo {
  display: none;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
  text-align: center;
}

.dnc-mobile-logo .logo-sm {
  width: 72px; height: 72px;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  margin-bottom: 0.75rem;
}

.dnc-mobile-logo .logo-sm img { width: 100%; height: 100%; object-fit: cover; }

.dnc-mobile-logo span {
  font-family: 'DM Serif Display', serif;
  font-size: 1.25rem;
  color: #1C3D2E;
}

/* Card */
.dnc-card {
  background: #ffffff;
  border-radius: 1rem;
  border: 1px solid rgba(28,61,46,0.08);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  padding: 2.5rem 2rem;
}

.dnc-card-header { margin-bottom: 2rem; }

.dnc-card-header h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  color: #1a2e1f;
  margin-bottom: 0.25rem;
}

.dnc-card-header p {
  font-size: 0.875rem;
  color: #4d6b54;
}

/* Alerts */
.dnc-error {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}

.dnc-success {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}

/* Form */
.dnc-form { display: flex; flex-direction: column; gap: 1rem; }

.dnc-field label {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: #1a2e1f;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.375rem;
}

.dnc-input-wrap { position: relative; }

.dnc-input-wrap input {
  width: 100%;
  height: auto;
  background: #F5F7F4;
  border: 1px solid rgba(28,61,46,0.18);
  border-radius: 0.5rem;
  padding: 0.625rem 2.25rem 0.625rem 1rem;
  font-size: 0.875rem;
  font-family: 'Inter', sans-serif;
  color: #1a2e1f;
  outline: none;
  box-shadow: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.dnc-input-wrap input::placeholder { color: #9ab8a1; }

.dnc-input-wrap input:focus {
  background: #F5F7F4;
  border-color: #4A7C59;
  box-shadow: 0 0 0 3px rgba(74,124,89,0.15);
}

.dnc-input-icon {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ab8a1;
  pointer-events: none;
  display: flex;
}

.dnc-field small.error {
  display: block;
  color: #b91c1c;
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

/* Checkbox + Submit row */
.dnc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.25rem;
}

.dnc-remember {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
  font-size: 0.875rem;
  font-weight: 400;
  color: #4d6b54;
  margin-bottom: 0;
}

.dnc-remember input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: #1C3D2E;
  border-radius: 3px;
  cursor: pointer;
  flex-shrink: 0;
}

.dnc-remember a {
  color: #4A7C59;
  font-weight: 600;
  text-decoration: none;
}

.dnc-remember a:hover { color: #1C3D2E; }

.dnc-btn {
  padding: 0.625rem 1.5rem;
  background-color: #1C3D2E;
  color: #ffffff;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: opacity 0.15s;
}

.dnc-btn:hover { opacity: 0.88; }
.dnc-btn:active { transform: scale(0.98); }

/* Social sign-in */
.dnc-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem 0 1rem;
  color: #9ab8a1;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dnc-divider::before,
.dnc-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(28,61,46,0.12);
}

.dnc-social {
  display: flex;
  gap: 0.75rem;
}

.dnc-social a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 0.5rem;
  background: #ffffff;
  border: 1px solid rgba(28,61,46,0.18);
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #1a2e1f;
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s;
}

.dnc-social a:hover {
  background: #F5F7F4;
  border-color: rgba(28,61,46,0.35);
}

.dnc-social a svg { flex-shrink: 0; }

/* Footer links */
.dnc-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(28,61,46,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.dnc-footer a {
  color: #4A7C59;
  text-decoration: none;
  transition: color 0.15s;
}

.dnc-footer a:hover { color: #1C3D2E; }
.dnc-footer p { color: #4d6b54; }
.dnc-footer p a { font-weight: 600; }

/* ── Responsive ── */
@media (max-width: 767px) {
  .dnc-left { display: none; }
  .dnc-mobile-logo { display: flex; }
}
