:root {
  --bg: #030b5c;
  --text: #fff;
  --input-text: #9c9c9c;
  --muted: rgba(255, 255, 255, 0.58);
  --line: rgba(255, 255, 255, 0.86);
  --button-text: #030b5c;
  --error: #ffb8b8;
  --font-body: "Roboto", Arial, Helvetica, sans-serif;
  --font-heading: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

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

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  text-align: center;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.page {
  display: grid;
  min-height: 100vh;
  place-items: start center;
}

.home-card {
  width: 100%;
  max-width: 420px;
  margin-top: 182px;
}

#company-title {
  margin: 0 0 31px;
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 700;
  line-height: 48px;
}

.address {
  margin: 0 0 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  height: 41px;
  border: 0;
  border-radius: 2px;
  background: #fff;
  color: var(--button-text);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  line-height: 14px;
  letter-spacing: 1.2px;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.btn:hover {
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 1px #fff;
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.login-card {
  width: 100%;
  max-width: 396px;
  margin-top: 110px;
}

.login-card h1 {
  margin: 0 0 26px 21px;
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 400;
  line-height: 48px;
}

.login-card .subtitle {
  margin: 0 0 35px 20px;
}

.form-group {
  margin-bottom: 28px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  text-align: start;
  font-size: 12px;
  font-weight: 500;
  line-height: normal;
}

.input-wrap {
  position: relative;
}

.input-wrap input {
  width: 100%;
  height: 27px;
  padding: 0 42px 7px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  outline: 0;
  background: transparent;
  color: var(--input-text);
  font: 400 14px/normal var(--font-body);
}

.input-wrap input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.form-group.has-error .input-wrap input {
  border-bottom-color: var(--error);
}

.field-error {
  min-height: 16px;
  margin: 5px 0 -21px;
  color: var(--error);
  text-align: left;
  font-size: 12px;
  line-height: 16px;
}

.form-error {
  margin: 4px 0 -17px;
  color: var(--error);
  text-align: center;
  font-size: 14px;
  line-height: 20px;
}

.form-error[hidden] {
  display: none;
}

.password-toggle {
  position: absolute;
  right: 0;
  bottom: 5px;
  width: 28px;
  height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.password-toggle svg {
  width: 24px;
  height: 24px;
}

.login-actions {
  margin-top: 47px;
}

.login-actions .btn {
  width: 180px;
}

.secondary-link {
  display: block;
  margin-top: 25px;
  color: var(--text);
  text-decoration: none;
  transition:
    opacity 0.2s ease,
    text-decoration-color 0.2s ease;
}

.secondary-link:hover {
  opacity: 0.7;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.secondary-link + .secondary-link {
  margin-top: 24px;
}

.btn:focus-visible,
.secondary-link:focus-visible,
.password-toggle:focus-visible,
.input-wrap input:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

@media (max-width: 700px) {
  .home-card,
  .login-card {
    margin-top: 90px;
    padding: 0 24px;
  }

  #company-title,
  .login-card h1 {
    font-size: 31px;
  }

  .login-card h1,
  .login-card .subtitle {
    margin-left: 0;
  }
}

.btn:hover {
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 1px #fff;
  transform: translateY(-2px);
}

.secondary-link:hover {
  /*opacity: 0.7;*/
  text-decoration: underline;
  text-underline-offset: 5px;
}
