@import url("./design-tokens.css?v=20260527-brand-font");

* {
  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-brand span {
  color: #b24f75;
  font-size: 31px;
  line-height: 1;
}

.model-login-brand strong {
  color: #17131a;
  font-family: var(--font-heading);
  font-size: 35px;
  font-weight: 400;
  line-height: 1.05;
}

.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;
}

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

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