.worker-row {
  grid-template-columns: 1.2fr 1fr 1.25fr 1.35fr;
}

.worker-appointment {
  padding: 14px 0;
  border-bottom: 1px solid #eee7e1;
}

.worker-appointment:last-of-type {
  border-bottom: 0;
}

.worker-appointment-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.worker-appointment-heading .appointment-details {
  flex: 1;
}

.worker-appointment .worker-row {
  padding-bottom: 0;
  border-bottom: 0;
}

.notice-client-fields {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.role-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.role-preview-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fffdfa;
}

.role-preview-icon {
  color: var(--rose-dark);
  font-size: 23px;
}

.role-preview-card h3 {
  margin: 8px 0 4px;
  font: 500 20px var(--serif);
}

.role-preview-card p {
  flex: 1;
  margin: 0 0 16px;
  color: #81746d;
  font-size: 10px;
  line-height: 1.7;
}

.account-identity {
  max-width: 240px;
  overflow: hidden;
  color: #75665e;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.auth-page {
  min-height: calc(100vh - 78px);
  overflow: hidden;
  background: linear-gradient(118deg, #f7f1eb 0%, #fbf8f4 52%, #f2e8e0 100%);
}

.auth-layout {
  min-height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
  align-items: center;
  gap: clamp(36px, 8vw, 110px);
  padding-block: 56px;
}

.auth-intro {
  position: relative;
  min-height: 490px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.auth-intro h1 {
  max-width: 620px;
  margin: 10px 0 18px;
  font: 500 clamp(43px, 5.5vw, 68px)/1.06 var(--serif);
  letter-spacing: -1.8px;
}

.auth-intro h1 em {
  color: var(--rose-dark);
  font-weight: 500;
}

.auth-intro > p:not(.eyebrow) {
  max-width: 445px;
  margin: 0;
  color: #76675e;
  font-size: 14px;
  line-height: 1.9;
}

.auth-benefits {
  display: grid;
  gap: 12px;
  margin-top: 31px;
  color: #695b54;
  font-size: 12px;
}

.auth-benefits span {
  display: flex;
  align-items: center;
  gap: 11px;
}

.auth-benefits i {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 1px solid #e5d2c8;
  border-radius: 50%;
  color: var(--rose-dark);
  font-style: normal;
}

.auth-ornament {
  position: absolute;
  right: 3%;
  bottom: -58px;
  width: 210px;
  height: 210px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(161, 119, 103, .22);
  border-radius: 50%;
  color: rgba(141, 98, 83, .38);
  font: 500 34px var(--serif);
}

.auth-ornament::before,
.auth-ornament::after {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(161, 119, 103, .18);
  border-radius: 50%;
  content: "";
}

.auth-ornament::after {
  inset: 29px;
}

.auth-ornament i {
  position: absolute;
  top: 20px;
  right: 21px;
  color: rgba(141, 98, 83, .5);
  font-size: 27px;
  font-style: normal;
}

.auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid rgba(224, 211, 201, .88);
  border-radius: 8px;
  background: rgba(255, 253, 250, .96);
  box-shadow: 0 22px 70px rgba(88, 62, 48, .11);
}

.auth-card > .eyebrow {
  margin: 0 0 9px;
  font-size: 9px;
  letter-spacing: 1.5px;
}

.auth-card h2 {
  margin: 0;
  font: 500 31px/1.15 var(--serif);
}

.auth-subtitle {
  min-height: 38px;
  margin: 9px 0 21px;
  color: #80726a;
  font-size: 11px;
  line-height: 1.7;
}

.auth-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 20px;
  padding: 4px;
  border-radius: 4px;
  background: #f4eee8;
}

.auth-mode-tabs button {
  min-height: 37px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #75675f;
  font-size: 10px;
  cursor: pointer;
}

.auth-mode-tabs button.active {
  background: #fffdfa;
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(64, 48, 38, .1);
  font-weight: 700;
}

.auth-setup-alert,
.auth-message {
  margin: 0 0 13px;
  padding: 11px 12px;
  border-radius: 4px;
  background: #f5eee3;
  color: #755b3c;
  font-size: 10px;
  line-height: 1.65;
}

.auth-message:empty {
  display: none;
}

.auth-message.error {
  background: #fbefed;
  color: #914e48;
}

.auth-form,
.auth-form .field {
  display: grid;
  gap: 12px;
}

.auth-form .field {
  gap: 5px;
}

.auth-form .field label {
  color: #62554d;
  font-size: 10px;
  font-weight: 600;
}

.auth-form .field input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #dfd3cb;
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  outline: none;
}

.auth-form .field input:focus {
  border-color: #b97d71;
  box-shadow: 0 0 0 3px rgba(195, 126, 117, .13);
}

.auth-form input[name="token"] {
  max-width: 240px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 8px;
  text-align: center;
}

.auth-form .field small {
  color: #8a7b72;
  font-size: 9px;
}

.auth-submit {
  width: 100%;
  min-height: 47px;
  margin-top: 5px;
}

.auth-submit:disabled {
  cursor: wait;
  opacity: .72;
}

.auth-link {
  display: block;
  margin: 14px auto 0;
  padding: 4px;
  border: 0;
  background: transparent;
  color: var(--rose-dark);
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
}

.auth-team-note,
.auth-privacy {
  margin: 16px 0 0;
  color: #80726a;
  font-size: 9px;
  line-height: 1.65;
  text-align: center;
}

.auth-privacy {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #eee5df;
  color: #97887f;
}

@media (max-width: 900px) {
  .auth-layout {
    grid-template-columns: minmax(0, .9fr) minmax(340px, .95fr);
    gap: 30px;
  }

  .auth-ornament {
    right: -44px;
  }

  .worker-row {
    grid-template-columns: 1fr 1fr;
  }

  .worker-row > div:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 660px) {
  .auth-page,
  .auth-layout {
    min-height: calc(100svh - 67px);
  }

  .auth-layout {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-block: 10px 20px;
  }

  .auth-intro {
    min-height: 0;
    padding: 5px 0 0;
  }

  .auth-intro h1 {
    margin: 4px 0 0;
    font-size: 30px;
    letter-spacing: -.7px;
  }

  .auth-intro > p:not(.eyebrow) {
    display: none;
  }

  .auth-benefits {
    display: none;
  }

  .auth-benefits {
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
    margin-top: 10px;
    font-size: 9px;
  }

  .auth-benefits span:last-child {
    grid-column: 1 / -1;
  }

  .auth-benefits i {
    width: 23px;
    height: 23px;
    flex: none;
  }

  .auth-ornament {
    display: none;
  }

  .auth-card {
    padding: 15px 17px;
  }

  .auth-card h2 {
    font-size: 27px;
  }

  .auth-subtitle {
    min-height: 0;
    margin: 6px 0 13px;
  }

  .auth-mode-tabs {
    margin-bottom: 13px;
  }

  .auth-form,
  .auth-form .field {
    gap: 8px;
  }

  .auth-form .field {
    gap: 4px;
  }

  .auth-form .field input {
    min-height: 40px;
  }

  .auth-setup-alert {
    margin-bottom: 9px;
    padding: 8px 10px;
  }

  .account-identity {
    max-width: 125px;
    font-size: 9px;
  }

  .worker-row {
    grid-template-columns: 1fr 1fr;
  }

  .notice-client-fields,
  .role-preview-grid {
    grid-template-columns: 1fr;
  }

  .worker-appointment-heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .worker-appointment-heading .appointment-details {
    min-width: calc(100% - 95px);
  }
}
