:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  background: #f4f6f8;
  color: #16202a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 420px);
}

.brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px;
  background: #102433;
  color: #ffffff;
}

.brand-mark {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  border: 1px solid #9ac6d7;
  border-radius: 8px;
  color: #9ac6d7;
  font-weight: 700;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 44px;
  line-height: 1.1;
}

.brand p {
  margin-top: 12px;
  color: #c7d5dd;
}

.login {
  align-self: center;
  width: min(100% - 40px, 360px);
  margin: 0 auto;
  padding: 0;
}

h2 {
  margin-bottom: 28px;
  font-size: 28px;
}

label {
  display: block;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 700;
}

input {
  width: 100%;
  height: 44px;
  margin-top: 8px;
  padding: 0 12px;
  border: 1px solid #b9c4cc;
  border-radius: 6px;
  font: inherit;
  background: #ffffff;
}

input:focus {
  outline: 3px solid #9ac6d7;
  outline-offset: 1px;
  border-color: #317b96;
}

button {
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 6px;
  background: #1f6f8b;
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.status {
  min-height: 22px;
  margin-top: 16px;
  color: #5f6f7a;
}

.status.error {
  color: #b42318;
}

.status.success {
  color: #067647;
}

@media (max-width: 760px) {
  .page {
    grid-template-columns: 1fr;
  }

  .brand {
    min-height: 220px;
    padding: 32px 24px;
  }

  h1 {
    font-size: 34px;
  }

  .login {
    align-self: start;
    margin-top: 36px;
  }
}
