*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  color: #1b1b1b;
  font-family: "Segoe UI", "Segoe UI Web (West European)", -apple-system,
    BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: #0067b8;
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #c8d6e4;
  background-image: url("../images/background.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}

.stack {
  width: 100%;
  max-width: 440px;
}

.card {
  background: #fff;
  padding: 44px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.brand-logo {
  display: block;
  width: 148px;
  height: auto;
  object-fit: contain;
}

.title {
  margin: 16px 0 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 28px;
  color: #1b1b1b;
}

.subtitle {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 20px;
  color: #1b1b1b;
  word-break: break-word;
}

.field {
  margin-top: 16px;
}

.field input {
  display: block;
  width: 100%;
  border: 0;
  border-bottom: 1px solid #666;
  background: transparent;
  padding: 6px 0;
  font: inherit;
  font-size: 15px;
  color: #1b1b1b;
  outline: none;
}

.field input::placeholder {
  color: #666;
}

.field input:focus {
  border-bottom-color: #0067b8;
}

.field input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.error {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 16px;
  color: #a80000;
}

.actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
}

.btn-primary,
.btn-secondary {
  position: relative;
  min-width: 108px;
  border: 0;
  padding: 7px 32px;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}

.btn-primary {
  background: #0067b8;
  color: #fff;
}

.btn-primary:hover:not(:disabled) {
  background: #005a9e;
}

.btn-primary:active:not(:disabled) {
  background: #004578;
}

.btn-secondary {
  background: transparent;
  color: #0067b8;
  min-width: auto;
  padding: 7px 12px;
}

.btn-secondary:hover:not(:disabled) {
  background: rgba(0, 103, 184, 0.06);
  text-decoration: underline;
}

.btn-primary:focus-visible,
.btn-secondary:focus-visible {
  outline: 2px solid #0067b8;
  outline-offset: 2px;
}

.btn-primary:disabled,
.btn-secondary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-primary.is-loading .btn-label {
  visibility: hidden;
}

.btn-spinner {
  display: none;
  position: absolute;
  inset: 0;
  margin: auto;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.btn-primary.is-loading .btn-spinner {
  display: block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

[hidden] {
  display: none !important;
}

@media (max-width: 480px) {
  .card {
    padding-left: 24px;
    padding-right: 24px;
  }
}
