@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --deep: #F5F2EC;
  --soft: #ECE7DD;
  --orange: #FF7A00;
  --orange-bright: #E86D00;
  --ink: #17140F;
  --gray: #5B564F;         /* darkened from #6B6660 for AA contrast on --deep */
  --input: #FFFFFF;
  --border: #DEDACF;
  --danger: #F4574A;
  --danger-bg: #FDEDEB;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--deep);
  color: var(--ink);
}

.role-selection {
    margin: 20px 0;
}

.role-selection p {
    margin-bottom: 10px;
    font-weight: 600;
}

.role-buttons {
    display: flex;
    gap: 10px;
}

.role-btn {
    flex: 1;
    padding: 12px 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: 0.2s;
}

.role-btn:hover {
    border-color: #222;
}

.role-btn.selected {
    background: #111;
    color: white;
    border-color: #111;
}


.umx-root {
  min-height: 100vh;
  width: 100%;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  position: relative;
}
.umx-display { font-family: 'Space Grotesk', sans-serif; }

/* ---------- LEFT: BRAND PANEL ---------- */
.brandPanel {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 140% at 15% 10%, #FBE9D5 0%, var(--deep) 55%),
              var(--deep);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 56px 56px 40px;
}
.glow-a, .glow-b {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.glow-a {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(255,122,0,0.32) 0%, rgba(255,122,0,0) 70%);
  top: -140px; left: -120px;
  animation: drift 14s ease-in-out infinite;
}
.glow-b {
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(255,140,26,0.2) 0%, rgba(255,140,26,0) 70%);
  bottom: -80px; right: -60px;
  animation: drift 18s ease-in-out infinite reverse;
}
@keyframes drift {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(24px,-18px) scale(1.08); }
}

.brandTop { position: relative; z-index: 2; }
.logoRow { display: flex; align-items: center; gap: 10px; margin-bottom: 64px; }
.logoMark {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(145deg, var(--orange-bright), var(--orange));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 17px; color: #0A0A0A;
  box-shadow: 0 0 24px rgba(255,122,0,0.35);
}
.logoMark.small { width: 32px; height: 32px; font-size: 15px; }
.logoText { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.logoText span { color: var(--orange); }

.brandHeadline {
  font-size: 40px;
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.02em;
  max-width: 420px;
  margin: 0 0 18px;
}
.brandHeadline em {
  font-style: normal;
  color: var(--orange);
}
.brandSub {
  color: var(--gray);
  font-size: 15px;
  line-height: 1.6;
  max-width: 380px;
  margin: 0;
}

/* ---------- Signature element: live campus feed ---------- */
.feedCard {
  position: relative;
  z-index: 2;
  margin-top: 40px;
  background: rgba(255,255,255,0.55);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 0 4px;
  max-width: 380px;
  max-height: 210px;
  overflow: hidden;
  backdrop-filter: blur(6px);
  box-shadow: 0 12px 32px rgba(23,20,15,0.06);
}
.feedLabel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 20px 6px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
  background: var(--soft);
  padding: 3px 10px 3px 8px;
  border-radius: 20px;
}
.pulseDot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--orange-bright);
  box-shadow: 0 0 8px var(--orange-bright);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.75); }
}
.feedTrack {
  display: flex;
  flex-direction: column;
  animation: scrollUp 16s linear infinite;
}
.feedRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 20px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.feedName { font-size: 13.5px; color: var(--ink); font-weight: 500; }
.feedTag { font-size: 11.5px; color: var(--gray); }
@keyframes scrollUp {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

.brandFoot {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 10px;
  color: var(--gray); font-size: 13px;
  margin-top: 28px;
}
.brandFoot svg { color: var(--orange); flex-shrink: 0; }

/* ---------- RIGHT: FORM PANEL ---------- */
.formPanel {
  background: var(--deep);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
}
.formCard { width: 100%; max-width: 380px; }
.mobileLogoRow { display: none; }

.cardHead { margin-bottom: 28px; }
.cardHead h1 {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.cardHead p { color: var(--gray); font-size: 14.5px; margin: 0; }

/* ---------- Status banner ---------- */
.banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--danger-bg);
  border: 1px solid rgba(244,87,74,0.25);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 20px;
  animation: slideIn 0.18s ease;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.banner svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 1px; color: var(--danger); }
.banner span#bannerText { color: #4A231F; font-size: 13.5px; line-height: 1.5; }

.field { margin-bottom: 16px; }
.fieldLabel {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray);
  margin-bottom: 7px;
}
.inputWrap { position: relative; }
.umx-input {
  width: 100%;
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 14px;
  color: var(--ink);
  font-size: 14.5px;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.umx-input::placeholder { color: #948F86; }
.umx-input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255,122,0,0.14);
}
.umx-input.errorInput {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(244,87,74,0.1);
}
.umx-input.pw { padding-right: 44px; }
.eyeBtn {
  position: absolute;
  right: 8px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  color: var(--gray);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 8px;
}
.eyeBtn:hover { color: var(--ink); background: rgba(0,0,0,0.04); }
.eyeBtn:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 1px;
}
.fieldError {
  font-size: 12px;
  color: var(--danger);
  margin: 6px 0 0;
}
.fieldHelp {
  font-size: 12px;
  color: var(--gray);
  margin: 6px 0 0;
}

.rowBetween {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 22px;
}
.rememberLabel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--gray);
  cursor: pointer;
  user-select: none;
  padding: 4px 4px 4px 0;
  margin-left: -4px;
}
/* Real checkbox kept for form semantics + native keyboard support;
   visually hidden but still focusable, with the styled span as its face. */
.srOnlyCheckbox {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.umx-checkbox {
  width: 18px; height: 18px;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: var(--input);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease;
  flex-shrink: 0;
}
.srOnlyCheckbox:focus-visible ~ .umx-checkbox {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}
.umx-checkbox.checked {
  background: var(--orange);
  border-color: var(--orange);
}
.umx-checkbox svg { width: 11px; height: 11px; color: #0A0A0A; display: none; }
.umx-checkbox.checked svg { display: block; }
.forgotLink {
  font-size: 13.5px;
  color: var(--orange-bright);
  text-decoration: none;
  font-weight: 500;
}
.forgotLink:hover { text-decoration: underline; }
.forgotLink:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
  border-radius: 4px;
}

.signInBtn {
  width: 100%;
  background: linear-gradient(145deg, var(--orange-bright), var(--orange));
  border: none;
  border-radius: 12px;
  padding: 14px 18px;
  color: #0A0A0A;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.signInBtn:hover:not(:disabled) {
  transform: translateY(-1.5px);
  box-shadow: 0 8px 24px rgba(255,122,0,0.28);
  filter: brightness(1.04);
}
.signInBtn:active:not(:disabled) { transform: translateY(0); }
.signInBtn:disabled { opacity: 0.75; cursor: not-allowed; }
.signInBtn:focus-visible {
  outline: 2px solid var(--orange-bright);
  outline-offset: 2px;
}
.spin { animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.createRow {
  text-align: center;
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--gray);
}
.createRow a {
  color: var(--orange-bright);
  font-weight: 500;
  text-decoration: none;
}
.createRow a:hover { text-decoration: underline; }
.createRow a:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
  border-radius: 4px;
}
.hidden {
    display: none !important;
}

.codeInput {
    letter-spacing: 10px;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
}

.codeInput::placeholder {
    letter-spacing: 10px;
    font-weight: 400;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .umx-root { grid-template-columns: 1fr; }
  .brandPanel { display: none; }
  .mobileLogoRow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
  }
  .formPanel { padding: 28px 20px 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .feedTrack, .glow-a, .glow-b, .pulseDot, .spin { animation: none !important; }
}