/* DLitt Portal — portal landing page styles. */

:root {
  --bg: #f8f6f5;
  --card: #ffffff;
  --text: #171717;
  --secondary: #6e6a67;
  --border: rgba(23, 23, 23, 0.07);
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-tint: rgba(79, 70, 229, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ---------- Left brand panel ---------- */

.brand-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--accent);
  padding: 32px 24px;
}

.brand-top {
  display: flex;
  flex-direction: column;
}

.logo-card {
  display: inline-flex;
  align-self: flex-start;
  border-radius: 12px;
  background: #ffffff;
  padding: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.logo-card img {
  height: 44px;
  width: auto;
}

.org-name {
  margin: 24px 0 0;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  color: #ffffff;
}

.eyebrow {
  margin: 16px 0 0;
  font-size: 0.875rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.7);
}

.program-title {
  margin: 4px 0 0;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.15;
  color: #ffffff;
}

.collab-label {
  margin: 24px 0 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

.collab-row {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.collab-row img {
  height: 64px;
  width: 64px;
  flex-shrink: 0;
  object-fit: contain;
}

.collab-name {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.tagline {
  margin: 16px 0 0;
  font-style: italic;
  color: rgba(255, 255, 255, 0.7);
  max-width: 30rem;
}

.brand-footer {
  margin-top: 32px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ---------- Right form panel ---------- */

.form-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 24px 40px;
}

.form-inner {
  width: 100%;
  max-width: 28rem;
}

.mobile-brand-header {
  margin-bottom: 32px;
  text-align: center;
}

.mobile-brand-header img.dyperf-mobile {
  margin: 0 auto;
  height: 40px;
  width: auto;
}

.mobile-brand-header h1 {
  margin: 12px 0 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
}

.mobile-collab-row {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.mobile-collab-row img {
  height: 28px;
  width: 28px;
  flex-shrink: 0;
  object-fit: contain;
}

.mobile-collab-row span {
  font-size: 0.6875rem;
  line-height: 1.3;
  color: var(--secondary);
  text-align: left;
}

.welcome-title {
  margin: 0;
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--text);
}

.welcome-subtitle {
  margin: 8px 0 0;
  font-size: 0.875rem;
  color: var(--secondary);
}

.preview-form {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.field input {
  width: 100%;
  min-height: 52px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 0 14px;
  outline: none;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}

.field input:focus {
  border-color: rgba(79, 70, 229, 0.45);
  box-shadow: 0 0 0 4px var(--accent-tint);
}

.btn-primary {
  height: 44px;
  border-radius: 14px;
  border: none;
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
  font-family: inherit;
  font-size: 0.95rem;
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.18);
}

.btn-primary[disabled] {
  cursor: not-allowed;
  opacity: 0.65;
}

.status-message {
  margin-top: 24px;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--secondary);
}

.apply-link-wrap {
  margin-top: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.apply-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.apply-link:hover {
  text-decoration: underline;
}

.apply-preview-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--secondary);
  background: var(--accent-tint);
  border-radius: 999px;
  padding: 3px 10px;
}

/* ---------- Responsive: desktop split screen ---------- */

@media (min-width: 1024px) {
  .page {
    flex-direction: row;
  }

  .brand-panel {
    display: flex;
    width: 50%;
    padding: 48px;
    overflow-y: auto;
  }

  .form-panel {
    width: 50%;
    padding: 24px 64px;
  }

  .mobile-brand-header {
    display: none;
  }
}

@media (max-width: 1023.98px) {
  .brand-panel {
    display: none;
  }
}
