html,
body {
  min-height: 100%;
}

body {
  margin: 0;
}

.app {
  min-height: 100vh;
}

.system-login__viewport {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(760px, calc(100% - 32px));
  max-width: 760px;
  min-height: 100vh;
  padding: 32px 0;
}

.system-login .center-sign {
  display: block;
  width: 100%;
  padding-top: 0;
}

.system-login__shell {
  width: 100%;
}

.system-login__header {
  margin-bottom: 1rem;
}

.system-login__header .system-auth-shell__description {
  color: #506277;
}

.system-login__card {
  padding: 1.75rem;
}

.system-login__intro {
  margin-bottom: 1.25rem;
  padding: 1rem 1.125rem;
  border: 1px solid var(--system-ui-border);
  border-radius: var(--system-ui-radius-md);
  background: linear-gradient(180deg, #fbfdff 0%, var(--system-ui-primary-soft) 100%);
}

.system-login__section-title {
  margin: 0;
  color: var(--system-ui-title);
  font-size: 1.05rem;
  font-weight: 700;
}

.system-login__section-copy {
  margin: 0.45rem 0 0;
  color: var(--system-ui-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.system-login__form {
  display: grid;
  gap: 18px;
}

.system-login__field label {
  display: block;
  margin-bottom: 8px;
  color: var(--system-ui-title);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.system-login__input-group {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  border: 1px solid var(--system-ui-border-strong);
  border-radius: var(--system-ui-radius-sm);
  background: #f9fbfe;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.system-login__input-group:focus-within {
  border-color: var(--system-ui-primary);
  box-shadow: 0 0 0 4px rgba(47, 108, 163, 0.12);
  background: #ffffff;
}

.system-login__input-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--system-ui-primary);
  font-size: 0.95rem;
}

.system-login__input-group .form-control {
  height: 54px;
  padding: 0 18px 0 4px;
  border: 0;
  border-radius: var(--system-ui-radius-sm);
  background: transparent;
  box-shadow: none;
  color: var(--system-ui-text);
  font-size: 0.98rem;
  font-weight: 600;
}

.system-login__input-group .form-control:focus {
  box-shadow: none;
}

.system-login__input-group .form-control[aria-invalid="true"] {
  color: #b42318;
}

.system-login__error {
  margin-top: 8px;
  color: #b42318;
  font-size: 0.82rem;
  font-weight: 700;
}

.system-login__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 0.25rem;
}

.system-login__remember {
  margin-top: 0;
}

.system-login__remember label {
  margin-bottom: 0;
  color: #586b81;
  font-size: 0.92rem;
  font-weight: 600;
}

.system-login__submit {
  min-width: 180px;
  min-height: 50px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--system-ui-primary) 0%, #245882 100%);
  box-shadow: 0 12px 24px rgba(47, 108, 163, 0.22);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.system-login__submit:hover,
.system-login__submit:focus {
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(47, 108, 163, 0.25);
  filter: saturate(1.03);
}

.system-login__submit:focus-visible,
.system-login__remember input:focus-visible + label::before {
  outline: 0;
}

.system-login__footer {
  margin: 1.25rem 0 0;
  color: #586b81;
  font-size: 0.84rem;
  line-height: 1.6;
  text-align: center;
}

@media (max-width: 991px) {
  .system-login__viewport {
    width: min(100%, calc(100% - 24px));
    padding: 24px 0;
  }

  .system-login__card {
    padding: 1.25rem;
  }

  .system-login__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .system-login__submit {
    width: 100%;
  }
}

@media (max-width: 575px) {
  .system-login__input-group {
    grid-template-columns: 46px 1fr;
  }

  .system-login__input-group .form-control {
    height: 52px;
  }
}
