:root {
  --ink: #102b35;
  --ink-soft: #46616a;
  --paper: #f5f2eb;
  --white: #fff;
  --mint: #a8dbc8;
  --mint-dark: #4e9d88;
  --coral: #dc795f;
  --line: rgba(16, 43, 53, 0.15);
  --shadow: 0 30px 80px rgba(16, 43, 53, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 92% 8%, rgba(168, 219, 200, 0.3), transparent 30%),
    var(--paper);
  color: var(--ink);
  font-family: "DM Sans", Arial, sans-serif;
}

a,
button,
input {
  font: inherit;
}

a {
  color: inherit;
}

button {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}

.demo-notice {
  min-height: 38px;
  padding: 9px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.76rem;
  text-align: center;
}

.demo-notice strong {
  color: var(--mint);
  font-family: Manrope, Arial, sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.portal-header {
  width: min(1440px, 100%);
  min-height: 86px;
  margin: 0 auto;
  padding: 18px clamp(22px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.provider-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-family: Manrope, Arial, sans-serif;
  font-size: 1.14rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.provider-brand small {
  display: block;
  margin-top: 5px;
  color: var(--ink-soft);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.provider-mark {
  width: 42px;
  height: 42px;
  position: relative;
  border-radius: 13px 13px 13px 4px;
  display: grid;
  place-items: center;
  background: var(--ink);
  overflow: hidden;
}

.provider-mark i {
  width: 5px;
  position: absolute;
  bottom: 10px;
  border-radius: 5px 5px 1px 1px;
  background: var(--mint);
  transform: rotate(18deg);
}

.provider-mark i:nth-child(1) {
  height: 12px;
  left: 12px;
}

.provider-mark i:nth-child(2) {
  height: 19px;
  left: 20px;
}

.provider-mark i:nth-child(3) {
  height: 26px;
  left: 28px;
}

.property-return {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
}

.property-return span {
  margin-left: 5px;
  color: var(--coral);
}

.portal-shell {
  width: min(1360px, calc(100% - clamp(28px, 5vw, 72px)));
  min-height: calc(100vh - 164px);
  margin: 0 auto 38px;
  border: 1px solid var(--line);
  border-radius: 26px;
  display: grid;
  grid-template-columns: minmax(360px, 0.88fr) minmax(500px, 1.12fr);
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.property-panel {
  min-height: 720px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #183439;
  color: var(--white);
}

.property-panel > img,
.property-panel__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.property-panel > img {
  z-index: -2;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
}

.property-panel__shade {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(8, 20, 20, 0.15), rgba(8, 25, 24, 0.87)),
    linear-gradient(90deg, rgba(9, 36, 34, 0.45), transparent 70%);
}

.property-panel__content {
  width: min(470px, 100%);
  position: absolute;
  left: clamp(28px, 5vw, 70px);
  bottom: 112px;
  padding-right: 34px;
}

.property-label,
.access-eyebrow {
  margin: 0 0 12px;
  font-family: Manrope, Arial, sans-serif;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.property-label {
  color: var(--mint);
}

.property-number {
  margin: 0 0 2px;
  color: rgba(255, 255, 255, 0.68);
  font-family: Manrope, Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.property-panel h1 {
  margin: 0;
  font-family: Manrope, Arial, sans-serif;
  font-size: clamp(2.2rem, 4vw, 4.25rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.property-panel__content > p:not(.property-label):not(.property-number) {
  max-width: 390px;
  margin: 22px 0 26px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1rem;
  line-height: 1.65;
}

.property-panel ul {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  list-style: none;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.8rem;
}

.property-panel li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.property-panel li span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: rgba(168, 219, 200, 0.17);
  color: var(--mint);
  font-size: 0.65rem;
}

.property-panel__address {
  position: absolute;
  right: 32px;
  bottom: 32px;
  left: 32px;
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
}

.access-panel {
  min-width: 0;
  padding: clamp(38px, 6vw, 82px) clamp(28px, 7vw, 104px) 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(rgba(16, 43, 53, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 43, 53, 0.035) 1px, transparent 1px),
    var(--white);
  background-size: 38px 38px;
}

.access-card {
  width: min(100%, 470px);
  margin: auto;
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 20px 55px rgba(16, 43, 53, 0.09);
}

.portal-tabs {
  margin-bottom: 34px;
  padding: 4px;
  border-radius: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #eef2ef;
}

.portal-tabs a {
  padding: 10px 14px;
  border-radius: 9px;
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.portal-tabs a.is-active {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(16, 43, 53, 0.1);
}

.property-chip {
  width: fit-content;
  margin-bottom: 22px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 0.66rem;
  font-weight: 600;
}

.property-chip span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint-dark);
  box-shadow: 0 0 0 3px rgba(78, 157, 136, 0.13);
}

.access-eyebrow {
  color: var(--coral);
}

.access-card h2 {
  max-width: 390px;
  margin: 0;
  font-family: Manrope, Arial, sans-serif;
  font-size: clamp(2rem, 3.4vw, 3.05rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.04;
}

.access-description {
  max-width: 390px;
  margin: 16px 0 28px;
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.65;
}

.login-form {
  display: grid;
  gap: 18px;
}

.login-form > label {
  display: grid;
  gap: 8px;
}

.login-form label > span {
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 700;
}

.login-form input[type="email"],
.login-form input[type="password"],
.login-form input[type="text"] {
  width: 100%;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0 14px;
  background: #fbfcfa;
  color: var(--ink);
  font-size: 0.8rem;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.login-form input:focus {
  outline: 0;
  border-color: var(--mint-dark);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(78, 157, 136, 0.13);
}

.login-form input::placeholder {
  color: #97a4a4;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 66px !important;
}

.password-field button {
  position: absolute;
  top: 50%;
  right: 12px;
  border: 0;
  padding: 4px;
  background: transparent;
  color: var(--mint-dark);
  font-size: 0.67rem;
  font-weight: 700;
  transform: translateY(-50%);
  cursor: pointer;
}

.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.68rem;
}

.check-label input {
  width: 15px;
  height: 15px;
  accent-color: var(--mint-dark);
}

.text-button,
.account-prompt button,
.portal-footer button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--mint-dark);
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
}

.sign-in-button {
  min-height: 53px;
  margin-top: 2px;
  border: 0;
  border-radius: 11px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--ink);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.sign-in-button:hover {
  background: #17434d;
  transform: translateY(-2px);
}

.sign-in-button span {
  color: var(--mint);
  font-size: 1rem;
}

.login-status {
  margin: 0;
  padding: 11px 12px;
  border: 1px solid rgba(78, 157, 136, 0.25);
  border-radius: 9px;
  background: rgba(168, 219, 200, 0.14);
  color: #2e6f60;
  font-size: 0.7rem;
  line-height: 1.5;
}

.account-prompt {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--ink-soft);
  font-size: 0.69rem;
}

.support-row {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #899898;
  font-size: 0.65rem;
}

.support-row a {
  color: var(--ink-soft);
  font-weight: 700;
  text-underline-offset: 3px;
}

.portal-footer {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 9px 16px;
  color: #879595;
  font-size: 0.58rem;
}

.portal-footer span:first-child {
  color: var(--ink-soft);
  font-weight: 700;
}

.portal-footer button {
  color: #768787;
  font-size: inherit;
  font-weight: 600;
}

@media (max-width: 980px) {
  .portal-shell {
    grid-template-columns: 1fr;
  }

  .property-panel {
    min-height: 430px;
  }

  .property-panel__content {
    bottom: 88px;
  }

  .property-panel h1 {
    font-size: clamp(2.4rem, 7vw, 4.5rem);
  }

  .property-panel ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .access-panel {
    min-height: 680px;
  }
}

@media (max-width: 680px) {
  .demo-notice {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
    padding: 9px 18px;
    text-align: left;
  }

  .portal-header {
    min-height: 76px;
    padding: 14px 18px;
  }

  .provider-mark {
    width: 38px;
    height: 38px;
  }

  .property-return {
    max-width: 120px;
    text-align: right;
  }

  .portal-shell {
    width: calc(100% - 20px);
    margin-bottom: 10px;
    border-radius: 19px;
  }

  .property-panel {
    min-height: 500px;
  }

  .property-panel__content {
    left: 24px;
    bottom: 94px;
    padding-right: 20px;
  }

  .property-panel__content > p:not(.property-label):not(.property-number) {
    margin: 16px 0 21px;
  }

  .property-panel ul {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .property-panel__address {
    right: 24px;
    bottom: 24px;
    left: 24px;
  }

  .access-panel {
    min-height: 0;
    padding: 28px 14px 20px;
  }

  .access-card {
    padding: 25px 20px;
    border-radius: 17px;
  }

  .form-options,
  .account-prompt {
    align-items: flex-start;
    flex-direction: column;
    gap: 11px;
  }

  .portal-footer {
    margin-top: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
