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

html,
body {
  height: 100%;
  color-scheme: dark;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #121212;
  color: #f5f5f5;
  overflow: hidden;
}

.page {
  position: relative;
  display: flex;
  min-height: 100%;
  background-color: #121212;
}

.page__bg {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: url("/images/bg-login.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  max-width: 480px;
  min-height: 100%;
  margin: 0 auto;
  background-color: #121212;
}

@media (min-width: 768px) {
  .page {
    min-height: 100vh;
  }

  .page__bg {
    display: block;
  }

  .page__content {
    flex: 0 0 480px;
    width: 480px;
    min-height: 100vh;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 3px 3px rgba(0, 0, 0, 0.33);
  }
}

.header {
  display: flex;
  flex-direction: row;
  align-items: center;
  border-bottom: 1px solid #828282;
  background-color: #121212;
}

.header__back {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 16px;
  padding-bottom: 16px;
  border: none;
  background: transparent;
  color: #f4b944;
  cursor: pointer;
}

.header__back svg {
  width: 28px;
  height: 28px;
}

.header__title {
  margin-left: 4px;
  padding-bottom: 16px;
  padding-top: 16px;
  font-size: 16px;
  color: #f5f5f5;
  letter-spacing: 0.35px;
}

.logo {
  display: block;
  width: 90%;
  max-width: 100%;
  height: 80px;
  margin: 12px auto 0;
  object-fit: contain;
}

.main {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  background-color: #121212;
}

.main__scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.form-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px;
}

.form-section__intro {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.form-section__title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  color: #f5f5f5;
  letter-spacing: 0.35px;
}

.form-section__subtitle {
  font-size: 18px;
  line-height: 1.4;
  color: #f5f5f5;
  letter-spacing: 0.35px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  margin-top: 20px;
}

.field {
  display: flex;
  flex-direction: column;
}

.field__label {
  margin-bottom: 4px;
  font-size: 20px;
  font-weight: 700;
  color: #f5f5f5;
  letter-spacing: 0.35px;
}

.field__input-wrap {
  display: flex;
  align-items: center;
  height: 48px;
  border: 1px solid #747474;
  border-radius: 8px;
  background-color: transparent;
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.field__input-wrap:focus-within {
  border-color: #b3b3b3;
  box-shadow: inset 0 0 0 1px #f7f7f7;
}

.field__input {
  flex: 1;
  width: 100%;
  height: 100%;
  padding: 0 12px;
  border: none;
  outline: none;
  background: transparent;
  font-size: 20px;
  color: #f5f5f5;
  letter-spacing: 0.35px;
}

.field__input::placeholder {
  color: #a3a3a3;
}

.remember {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
  margin-bottom: 96px;
}

.remember__label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

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

.remember__box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 2px solid #a3a3a3;
  border-radius: 4px;
  background: transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.remember__checkbox:checked + .remember__box {
  background-color: #fafafa;
  border-color: #fafafa;
}

.remember__checkbox:checked + .remember__box::after {
  content: "";
  width: 6px;
  height: 10px;
  border: solid #121212;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

.remember__text {
  font-size: 16px;
  color: #d4d4d4;
  letter-spacing: 0.35px;
}

.remember__label:hover .remember__text {
  color: #f5f5f5;
}

.footer-action {
  width: 100%;
  padding: 0 24px 48px;
  background-color: #121212;
}

.btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  padding: 0 28px;
  border: 1px solid #b3b3b3;
  border-radius: 4px;
  background-color: #f4b944;
  color: #ffffff;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.35px;
  cursor: pointer;
  transition: background-color 0.15s ease, opacity 0.15s ease;
}

.btn-submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-submit:not(:disabled):hover {
  background-color: #e5a832;
}

.btn-submit:not(:disabled):active {
  background-color: #d49a28;
}
