@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("montserrat-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --navy: #0d1b36;
  --teal: #00c2a8;
  --milk: #f4f4f2;
  --silver: #c5cacc;
  --ink: #182b3d;
  --muted: #53646d;
  --focus: #007a68;
  font-family: Montserrat, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  min-width: 280px;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-content: center;
  margin: 0;
  padding: clamp(24px, 4vw, 64px);
  background: var(--milk);
  color: var(--ink);
}

.access {
  display: grid;
  grid-template-columns: minmax(0, 1.13fr) minmax(415px, 1fr);
  width: min(100%, 1180px);
  min-height: min(760px, calc(100svh - 80px));
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid #e0e5e5;
  border-radius: 24px;
  background: white;
  box-shadow: 0 24px 70px #0d1b3610;
}

.access-hero {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 100%;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(143deg, #152b49, var(--navy) 64%);
  color: white;
}

.hero-image {
  position: absolute;
  inset: 0 0 20%;
  z-index: -1;
  background: url("dentalcrm-office.webp") center 37% / cover no-repeat;
}

.access-hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, #0d1b3624 49%, #0d1b36ee 75%, var(--navy) 95%);
  content: "";
}

.hero-copy { padding: 42px clamp(30px, 5vw, 66px) clamp(40px, 6vw, 74px); }
.hero-copy p {
  margin: 20px 0 12px;
  font-size: clamp(31px, 4vw, 55px);
  font-weight: 720;
  line-height: 1.1;
  letter-spacing: -.045em;
}

.hero-copy p span { color: #78e5d7; }
.hero-copy small { color: #c9d7e2; font-size: clamp(.8rem, 1.1vw, .96rem); font-weight: 520; }
.hero-accent { display: block; width: 35px; height: 3px; border-radius: 10px; background: var(--teal); }

.access-main {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: clamp(34px, 6vw, 88px);
}

.access-content { width: min(100%, 422px); }
.wordmark, .wordmark-fallback { display: block; margin: 0 0 42px; }
.wordmark { max-width: 78%; height: auto; object-fit: contain; object-position: left; }
.wordmark-fallback { color: var(--navy); font-size: 1.88rem; line-height: 1.1; font-weight: 750; letter-spacing: -.06em; }
.wordmark-fallback span { color: var(--focus); }

.access-heading { margin-bottom: 26px; }
.access-heading h1 { margin: 0; color: var(--navy); font-size: clamp(1.8rem, 3.1vw, 2.55rem); line-height: 1.15; letter-spacing: -.05em; }
.access-heading p { margin: 10px 0 0; color: var(--muted); font-size: .9rem; font-weight: 500; line-height: 1.65; }

.login-form { display: grid; gap: 20px; }
.field { display: grid; gap: 9px; }
.field label { font-size: .86rem; font-weight: 680; color: var(--navy); }
.field input {
  width: 100%;
  height: 53px;
  min-width: 0;
  padding: 0 15px;
  border: 1px solid #c1cace;
  border-radius: 10px;
  background: #fbfcfc;
  color: var(--navy);
  font: inherit;
  font-size: 1rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.field input::placeholder { color: #667780; opacity: 1; }
.field input:focus { outline: 0; border-color: var(--focus); box-shadow: 0 0 0 3px #007a6824; }
.password-field { position: relative; }
.password-field input { padding-right: 54px; }

button { font: inherit; cursor: pointer; }
button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.password-toggle {
  position: absolute;
  inset-inline-end: 5px;
  inset-block-start: 4px;
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #526874;
}

.password-toggle:hover { background: #eaf4f3; }
.eye { position: relative; display: block; width: 16px; height: 16px; border: 1.6px solid currentColor; border-radius: 70% 22%; transform: rotate(45deg); }
.eye::after { position: absolute; inset: 4px; border: 1.5px solid currentColor; border-radius: 50%; content: ""; }
.password-toggle[aria-pressed="true"] .eye::before { position: absolute; inset: -4px auto -4px 5px; z-index: 1; border: 1px solid currentColor; background: currentColor; box-shadow: 1.5px 0 #fbfcfc; content: ""; }

.submit, .company-button {
  display: flex;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 10px;
  min-height: 53px;
  font-size: .94rem;
  font-weight: 730;
  transition: background .15s ease, border-color .15s ease;
}

.submit {
  justify-content: center;
  gap: 13px;
  margin-top: 4px;
  padding: 12px 18px;
  background: var(--teal);
  color: var(--navy);
}

.submit:hover { background: #17d3bb; }
.submit:active { background: #00b29c; }
.arrow { flex: none; display: block; position: relative; width: 16px; height: 12px; }
.arrow::before { position: absolute; inset: 5px 1px auto 0; border-top: 1.7px solid currentColor; content: ""; }
.arrow::after { position: absolute; inset: 2px 1px auto auto; width: 8px; height: 8px; border-top: 1.7px solid currentColor; border-right: 1.7px solid currentColor; transform: rotate(45deg); content: ""; }

.feedback { margin: 0 0 17px; padding: 12px 14px; border: 1px solid #b5dbd3; border-radius: 8px; background: #ebf7f4; color: #0a5e52; font-size: .86rem; font-weight: 550; line-height: 1.55; }
.feedback-error { border-color: #e7c4c8; background: #fff4f5; color: #8e2938; }
.company-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.company-button { justify-content: space-between; gap: 15px; width: 100%; min-height: 55px; padding: 12px 17px; text-align: start; overflow-wrap: anywhere; border-color: #cbd9da; background: #f7fbfa; color: var(--navy); }
.company-button:hover { border-color: #57bea9; background: #edf9f6; }
.company-button .arrow { color: var(--focus); }
.login-footer-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: #43596a; font-size: .8rem; font-weight: 650; text-decoration: none; text-underline-offset: 4px; }
.login-footer-link:hover { color: var(--focus); text-decoration: underline; }
.login-footer-link:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.login-footer-link .arrow { color: var(--focus); transform: scale(.78); }

.login-page {
  display: block;
  min-width: 0;
  padding: clamp(16px, 1.75vw, 32px);
  background: radial-gradient(ellipse at 0 0, #e8f5f1 0%, transparent 46%), #f7faf9;
}

.login-layout {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  width: min(100%, 1720px);
  min-height: calc(100vh - 2 * clamp(16px, 1.75vw, 32px));
  min-height: calc(100svh - 2 * clamp(16px, 1.75vw, 32px));
  margin-inline: auto;
}

.login-panel {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(28px, 5vh, 60px);
  width: min(calc(100% - 72px), 428px);
  margin-inline: auto;
  padding-block: clamp(20px, 4vh, 48px) 14px;
}

.login-logo { display: block; width: 188px; max-width: 100%; height: auto; }
.login-panel-content { align-self: center; min-width: 0; }
.login-panel .access-heading { margin-bottom: 34px; }
.login-panel .access-heading h1 { font-size: clamp(2.25rem, 4vw, 3.5rem); font-weight: 740; line-height: 1.06; }
.login-panel .access-heading p { max-width: 34ch; margin-top: 14px; font-size: .9375rem; }
.login-panel .login-form { gap: 22px; }

.login-panel .field input {
  height: 56px;
  padding-inline-start: 16px;
  border-color: #b9c9ce;
  border-radius: 13px;
  background: white;
}

.login-panel .field input:focus { border-color: var(--focus); }
.login-panel .field input::placeholder { color: #60727d; }
.login-panel .password-toggle { inset-block-start: 6px; }

.submit.submit-primary {
  justify-content: space-between;
  min-height: 58px;
  padding: 8px 10px 8px 18px;
  border-radius: 13px;
  background: var(--navy);
  color: white;
  box-shadow: 0 6px 14px #0d1b361b;
}

.submit.submit-primary:hover { background: #1a344e; }
.submit.submit-primary:active { background: #09162a; }
.submit-icon { display: grid; place-items: center; flex: none; width: 37px; height: 37px; border-radius: 9px; background: #1e514f; color: #9cf2e1; }
.submit-primary:hover .submit-icon { background: #24645d; }
.login-panel-footer { display: flex; align-items: center; min-height: 56px; border-top: 1px solid #d5e2df; }

.login-visual {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 560px;
  overflow: hidden;
  isolation: isolate;
  border-radius: clamp(22px, 2.5vw, 38px);
  background: #0a1c2c;
  box-shadow: 0 16px 36px #0d1b3622;
  color: white;
}

.login-visual img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
}

.login-visual::before, .login-visual::after { position: absolute; pointer-events: none; content: ""; }
.login-visual::before {
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, #07283c00 30%, #0a1e2d3d 52%, #071e2deb 91%), radial-gradient(ellipse at 100% 5%, #08d7ba21, transparent 60%);
}

.login-visual::after { inset: 13px; border: 1px solid #ffffff35; border-radius: clamp(14px, 1.8vw, 28px); }
.login-visual-copy { padding: clamp(36px, 6vw, 100px) clamp(34px, 5vw, 88px); }
.login-visual-copy::before { display: block; width: 42px; height: 2px; margin-bottom: 24px; background: var(--teal); content: ""; }
.login-visual-copy p { margin: 0; font-size: clamp(2.15rem, 4.65vw, 5.25rem); font-weight: 680; line-height: 1.06; letter-spacing: -.052em; }
.login-visual-copy p span { color: #95f0de; }
.login-visual-copy small { display: block; margin-top: 20px; color: #e1eeef; font-size: clamp(.82rem, 1.18vw, 1.05rem); font-weight: 500; line-height: 1.55; }

@media (max-width: 860px) {
  body { padding: clamp(16px, 4vw, 30px); }
  .access { grid-template-columns: minmax(0, 1fr) minmax(350px, 1.1fr); border-radius: 18px; }
  .access-main { padding: 36px; }
  .hero-copy { padding-inline: 28px; }
}

@media (max-width: 675px) {
  body { align-content: center; padding: 20px; }
  .access { display: block; min-height: 0; border-color: #e1e7e8; }
  .access-hero { display: none; }
  .access-main { position: relative; min-height: 470px; padding: clamp(25px, 7vw, 46px); }
  .access-main::before { position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--navy), var(--teal)); content: ""; }
  .wordmark, .wordmark-fallback { margin-bottom: 34px; }
}

@media (max-width: 760px) {
  .login-page { padding: max(20px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left)); }
  .login-layout { grid-template-columns: minmax(0, 1fr); min-height: calc(100vh - 40px); min-height: calc(100svh - 40px); }
  .login-panel { width: min(100%, 428px); padding-block: 10px 0; }
  .login-logo { width: 158px; }
  .login-panel .access-heading { margin-bottom: 28px; }
  .login-visual { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
