:root {
  --ink: #23303b;
  --muted: #667482;
  --line: #d8e0e4;
  --paper: #f7faf9;
  --panel: #ffffff;
  --aqua: #d9f1ef;
  --aqua-strong: #5aa9a2;
  --blue: #315d79;
  --amber: #d99b48;
  --error: #9c2f3a;
  --error-bg: #fff0f1;
  --shadow: 0 18px 50px rgba(30, 53, 63, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: Arial, "Noto Sans Hebrew", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 22%, rgba(90, 169, 162, 0.20), transparent 28%),
    radial-gradient(circle at 86% 80%, rgba(217, 155, 72, 0.16), transparent 26%),
    linear-gradient(135deg, #eef7f5 0%, #f8faf9 44%, #eef3f7 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: 0.18;
  background-image: url("/assets/dental-pattern.svg");
  background-size: 220px 220px;
}

.portal-shell {
  width: min(960px, calc(100% - 36px));
  min-height: calc(100vh - 64px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1fr);
  align-items: center;
  gap: 28px;
  padding: 34px 0 22px;
}

.brand-panel,
.login-panel {
  border: 1px solid rgba(120, 145, 155, 0.28);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.brand-panel {
  min-height: 480px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 8px;
}

.brand-mark {
  width: 72px;
  height: 72px;
  margin-bottom: 26px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(90, 169, 162, 0.35);
  border-radius: 8px;
  background: linear-gradient(145deg, #ffffff, var(--aqua));
}

.brand-mark img {
  width: 48px;
  height: 48px;
}

.eyebrow,
.module-label {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(2.2rem, 7vw, 4.2rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.hebrew-line {
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 1.08rem;
}

.service-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfb;
  color: #3d4d58;
  font-size: 0.88rem;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2f9d75;
  box-shadow: 0 0 0 4px rgba(47, 157, 117, 0.13);
}

.divider {
  width: 1px;
  height: 16px;
  background: var(--line);
}

.support-list {
  margin: 30px 0 0;
  display: grid;
  gap: 16px;
}

.support-list div {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

dt {
  color: var(--muted);
  font-size: 0.78rem;
}

dd {
  margin: 5px 0 0;
  font-weight: 700;
}

.login-panel {
  padding: 32px;
  border-radius: 8px;
}

.panel-heading {
  margin-bottom: 26px;
}

.panel-heading h2 {
  margin-bottom: 4px;
  font-size: 2rem;
  letter-spacing: 0;
}

.panel-heading p:last-child {
  color: var(--muted);
}

form {
  display: grid;
  gap: 14px;
}

label {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: #42515d;
  font-size: 0.88rem;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #cbd7dc;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

input:focus {
  border-color: var(--aqua-strong);
  outline: 3px solid rgba(90, 169, 162, 0.20);
}

button {
  min-height: 48px;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  background: #25485f;
}

button:disabled {
  cursor: wait;
  opacity: 0.76;
}

.button-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.login-message {
  min-height: 0;
  padding: 0;
  border: 0;
  font-size: 0.9rem;
}

.login-message.is-visible {
  min-height: 60px;
  padding: 12px;
  border: 1px solid rgba(156, 47, 58, 0.30);
  border-radius: 6px;
  background: var(--error-bg);
  color: var(--error);
}

.login-message.is-processing {
  border-color: rgba(90, 169, 162, 0.35);
  background: #eef9f7;
  color: #315d79;
}

.notice-lines {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.55;
}

.notice-lines p {
  margin-bottom: 8px;
}

footer {
  min-height: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  padding: 0 18px 18px;
  color: #71808b;
  font-size: 0.8rem;
}

@media (max-width: 760px) {
  .portal-shell {
    width: min(100% - 24px, 520px);
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 18px;
    padding-top: 18px;
  }

  .brand-panel {
    min-height: 0;
    padding: 24px;
  }

  .brand-mark {
    width: 58px;
    height: 58px;
    margin-bottom: 18px;
  }

  .brand-mark img {
    width: 40px;
    height: 40px;
  }

  h1 {
    font-size: 2.45rem;
  }

  .login-panel {
    padding: 24px;
  }

  label {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}
