:root {
  --ink: #1c1c28;
  --ink-light: #3a3a52;
  --ink-muted: #6e6e88;
  --surface: #f7f7f4;
  --surface-alt: #efeee9;
  --accent: #7B2D26;
  --accent-deep: #5e2019;
  --gold: #9e7c1a;
  --gold-light: #c9a735;
  --border: #d2d0c8;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
  --radius: 6px;
  --transition: 0.2s ease;
}

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

body {
  min-height: 100vh;
  font-family: 'DM Sans', sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.portal-header {
  position: relative;
  background: var(--accent);
  color: var(--white);
  padding: 22px 40px 38px;
}

.portal-header::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}

.brand-row > div:first-child {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 300px;
  height: 80px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  padding: 7px;
  box-shadow: var(--shadow-sm);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.university-name {
  font-family: 'Literata', serif;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.portal-ref {
  margin-top: 2px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  opacity: 0.72;
  text-transform: uppercase;
}

.header-copy {
  max-width: 780px;
  padding-top: 30px;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 9px;
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-copy h1 {
  font-family: 'Literata', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: 0;
}

.header-copy p {
  max-width: 620px;
  margin-top: 12px;
  color: rgba(255,255,255,0.84);
  font-size: 0.96rem;
}

.portal-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 34px auto 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.form-panel {
  display: flex;
  min-height: 310px;
  flex-direction: column;
  padding: 28px;
  color: inherit;
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.form-panel:hover,
.form-panel:focus-visible {
  border-color: rgba(123,45,38,0.45);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  outline: none;
}

.panel-code {
  width: fit-content;
  margin-bottom: 16px;
  padding: 4px 10px;
  color: var(--accent);
  background: rgba(123,45,38,0.07);
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.form-panel h2 {
  max-width: 420px;
  font-family: 'Literata', serif;
  font-size: 1.45rem;
  line-height: 1.22;
  font-weight: 600;
  letter-spacing: 0;
}

.form-panel p {
  margin-top: 10px;
  color: var(--ink-muted);
  font-size: 0.88rem;
}

.form-panel ul {
  display: grid;
  gap: 8px;
  margin: 20px 0 26px;
  padding-left: 18px;
  color: var(--ink-light);
  font-size: 0.84rem;
}

.panel-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-top: auto;
  padding: 10px 16px;
  color: var(--white);
  background: var(--accent);
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 700;
}

.form-panel:hover .panel-action,
.form-panel:focus-visible .panel-action {
  background: var(--accent-deep);
}

.guidance-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 22px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.guidance-strip > div {
  padding: 20px;
  border-right: 1px solid var(--border);
}

.guidance-strip > div:last-child {
  border-right: none;
}

.guidance-label {
  display: block;
  margin-bottom: 6px;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.guidance-strip strong {
  display: block;
  color: var(--ink-light);
  font-size: 0.9rem;
}

.guidance-strip p {
  margin-top: 6px;
  color: var(--ink-muted);
  font-size: 0.8rem;
}

.portal-footer {
  width: min(1120px, calc(100% - 40px));
  margin: 34px auto 0;
  padding: 18px 0 38px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--ink-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 820px) {
  .portal-header {
    padding: 18px 20px 30px;
  }

  .brand-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .portal-shell,
  .portal-footer {
    width: min(100% - 24px, 620px);
  }

  .form-grid,
  .guidance-strip {
    grid-template-columns: 1fr;
  }

  .guidance-strip > div {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .guidance-strip > div:last-child {
    border-bottom: none;
  }

  .portal-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 480px) {

.brand-mark{
  width: 240px;
  height: 64px;
}
}