* {
  box-sizing: border-box;
}

body {
  background: #fffaf8;
  color: #1f1c20;
  margin: 0;
  min-height: 100vh;
}

button,
input {
  font: inherit;
}

.model-login-shell {
  align-items: center;
  display: grid;
  min-height: 100vh;
  padding: 28px;
}

.model-login-panel {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(178, 75, 117, 0.16);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(101, 58, 80, 0.12);
  display: grid;
  gap: 28px;
  margin: 0 auto;
  max-width: 470px;
  padding: 34px;
  width: 100%;
}

.model-login-brand {
  border-bottom: 1px solid rgba(178, 75, 117, 0.14);
  display: grid;
  gap: 7px;
  justify-items: center;
  padding-bottom: 24px;
  text-align: center;
}

.model-login-logo {
  display: block;
  height: auto;
  max-width: 255px;
  width: 100%;
}

.model-login-brand small,
.model-login-kicker,
.model-login-field label {
  color: #8b5d6b;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.model-login-form h1 {
  color: #17131a;
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 400;
  line-height: 1.08;
  margin: 5px 0 0;
}

.model-login-error {
  background: rgba(156, 49, 49, 0.08);
  border: 1px solid rgba(156, 49, 49, 0.2);
  border-radius: 8px;
  color: #9c3131;
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.4;
  padding: 13px 14px;
}

.model-login-error a {
  color: #8f2f59;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.model-login-field {
  display: grid;
  gap: 8px;
}

.model-login-field input {
  background: #fff8fa;
  border: 1px solid rgba(178, 75, 117, 0.18);
  border-radius: 8px;
  color: #1f1c20;
  font-family: var(--font-ui);
  font-size: 16px;
  min-height: 50px;
  padding: 0 14px;
  width: 100%;
}

.model-login-field input:focus {
  border-color: rgba(178, 75, 117, 0.55);
  box-shadow: 0 0 0 3px rgba(178, 75, 117, 0.1);
  outline: 0;
}

.model-login-help {
  color: #8b5d6b;
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 1.35;
}

.model-login-button {
  align-items: center;
  background: #b24f75;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(178, 75, 117, 0.22);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 800;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
}

.model-login-button:focus-visible {
  outline: 3px solid rgba(178, 75, 117, 0.24);
  outline-offset: 3px;
}

.model-login-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.model-login-help-link {
  color: #8f2f59;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 800;
  justify-self: center;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.model-login-help-link:focus-visible {
  border-radius: 6px;
  outline: 3px solid rgba(178, 75, 117, 0.24);
  outline-offset: 4px;
}

.model-login-paused-shell {
  background:
    radial-gradient(circle at 18% 18%, rgba(178, 75, 117, 0.12), transparent 34%),
    radial-gradient(circle at 82% 12%, rgba(224, 181, 157, 0.26), transparent 30%),
    #fffaf8;
}

.model-login-paused-panel {
  max-width: 620px;
  overflow: hidden;
  position: relative;
}

.model-login-paused-panel::after {
  background: linear-gradient(135deg, rgba(178, 75, 117, 0.14), rgba(224, 181, 157, 0.18));
  content: "";
  height: 140px;
  position: absolute;
  right: -70px;
  top: -70px;
  transform: rotate(12deg);
  width: 220px;
}

.model-login-paused-content {
  display: grid;
  gap: 18px;
  position: relative;
  z-index: 1;
}

.model-login-paused-content h1 {
  color: #17131a;
  font-family: var(--font-heading);
  font-size: clamp(38px, 7vw, 58px);
  font-weight: 400;
  line-height: 0.96;
  margin: 0;
  max-width: 520px;
}

.model-login-paused-content p {
  color: #5a4e56;
  font-family: var(--font-text);
  font-size: 18px;
  line-height: 1.45;
  margin: 0;
  max-width: 520px;
}

.model-login-paused-status {
  align-items: center;
  background: #fff8fa;
  border: 1px solid rgba(178, 75, 117, 0.16);
  border-radius: 8px;
  color: #8f2f59;
  display: inline-flex;
  font-family: var(--font-ui);
  font-size: 14px;
  gap: 10px;
  justify-self: start;
  padding: 10px 13px;
}

.model-login-paused-status span {
  background: #b24f75;
  border-radius: 999px;
  box-shadow: 0 0 0 6px rgba(178, 75, 117, 0.12);
  display: inline-block;
  height: 9px;
  width: 9px;
}

.model-login-paused-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 8px;
}

.model-login-paused-actions .model-login-button {
  min-width: 150px;
  text-decoration: none;
}

@media (max-width: 560px) {
  .model-login-shell {
    padding: 18px;
  }

  .model-login-panel {
    padding: 26px 20px;
  }

  .model-login-paused-actions {
    align-items: stretch;
    display: grid;
  }
}
