/* FoodService SCS: login intentionally follows the minimal VacationTracker pattern. */
.auth-page {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  grid-template-columns: 1fr;
  overflow: hidden;
  padding: 40px 20px;
  background: #f1f6ef;
}

.auth-page::before,
.auth-page::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.auth-page::before {
  top: -150px;
  right: -105px;
  width: 330px;
  height: 330px;
  background: #e5efdf;
  border-radius: 50%;
}

.auth-page::after {
  bottom: -185px;
  left: -145px;
  width: 345px;
  height: 345px;
  background: #f8edd6;
  border-radius: 50%;
}

.auth-login {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(430px, 100%);
  flex-direction: column;
  align-items: center;
}

.auth-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin: 0 0 28px;
  text-align: center;
}

.auth-mark {
  display: grid;
  width: 96px;
  height: 96px;
  margin: 0;
  padding: 0;
  place-items: center;
  overflow: hidden;
  background: #fff;
  border: 1px solid #d6e3d5;
  border-radius: 25px;
  box-shadow: 0 12px 25px rgba(27, 62, 45, .14);
}

.auth-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.auth-brand h1 {
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.04em;
}

.auth-card {
  position: relative;
  width: 100%;
  padding: 28px 31px 31px;
  overflow: hidden;
  text-align: left;
  background: #fff;
  border: 1px solid #d6e3d5;
  border-radius: 16px;
  box-shadow: 0 18px 42px rgba(27, 62, 45, .12);
}

.auth-card::after {
  position: absolute;
  top: -1px;
  right: -1px;
  left: -1px;
  width: auto;
  height: 4px;
  content: "";
  background: var(--ink-2);
  border-radius: 16px 16px 0 0;
}

.auth-card::before {
  position: absolute;
  top: -1px;
  left: -1px;
  z-index: 1;
  width: 60%;
  height: 4px;
  content: "";
  background: var(--lime);
  border-radius: 16px 0 0;
}

.login-form {
  margin: 0;
}

.login-form label {
  display: block;
  margin: 0 0 8px;
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 750;
}

.login-form input {
  display: block;
  width: 100%;
  min-height: 51px;
  margin: 0;
  padding: 14px;
  color: var(--ink);
  background: #fbfdf9;
  border: 1px solid #c8d9c9;
  border-radius: 11px;
  outline: 0;
  transition: .18s ease;
}

.login-form input:focus {
  background: #fff;
  border-color: #82a478;
  box-shadow: 0 0 0 4px rgba(130, 164, 120, .15);
}

.login-form .button {
  min-height: 47px;
  margin-top: 18px;
  padding: 13px 18px;
  color: #fff;
  background: var(--ink-2);
  border-radius: 11px;
  box-shadow: 0 7px 13px rgba(18, 42, 36, .2);
  font-size: 11px;
}

.login-form .button:hover {
  background: var(--ink);
  box-shadow: 0 10px 18px rgba(18, 42, 36, .25);
}

.login-form .button span {
  color: #fff;
}

.form-message {
  min-height: 0;
  margin: 0;
  color: #557064;
  font-size: 11px;
}

.form-message:not(:empty) {
  min-height: 17px;
  margin-top: 12px;
}

.form-message.error {
  color: #b45e4b;
}

.auth-card-waiting {
  padding: 32px 31px 31px;
  text-align: center;
}

.auth-card-waiting h2 {
  margin: 10px 0 12px;
  color: var(--ink);
  font-size: 25px;
  line-height: 1;
}

.auth-card-waiting::after {
  background: var(--ink-2);
}

.waiting-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  place-items: center;
  color: var(--ink);
  background: #e8f0df;
  border-radius: 18px;
}

.waiting-icon svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.waiting-copy {
  margin: 0 0 17px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.waiting-copy strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-weight: 800;
}

.waiting-note {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 12px;
  color: #5e6c31;
  background: #f3f6df;
  border: 1px solid #dce8b0;
  border-radius: 11px;
  font-size: 10px;
  line-height: 1.4;
  text-align: left;
}

.waiting-note-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: none;
  background: var(--lime);
  border-radius: 50%;
}

.waiting-helper {
  margin: 16px 0 18px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.auth-card[hidden] {
  display: none;
}

/* Slack profile photo in the authenticated shell. */
.brand-mark,
.mini-mark {
  padding: 5px;
  overflow: hidden;
  background-image: none;
  background-color: #f8f4e9;
}

.brand-mark img,
.mini-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.avatar.has-avatar,
.top-avatar.has-avatar {
  padding: 0;
  overflow: hidden;
  background: #f8f4e9;
}

.employee-avatar {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 520px) {
  .auth-page {
    padding: 27px 20px;
  }

  .auth-brand {
    gap: 14px;
    margin-bottom: 25px;
  }

  .auth-mark {
    width: 82px;
    height: 82px;
    border-radius: 22px;
  }

  .auth-brand h1 {
    font-size: 16px;
  }

  .auth-card,
  .auth-card-waiting {
    padding: 26px 22px 28px;
    border-radius: 15px;
  }
}
