* {
  box-sizing: border-box;
}

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

body {
  background: #f7f7f5;
  color: #171717;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    sans-serif;
}

button,
input {
  font: inherit;
}

.page {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0;
}

.header {
  margin-bottom: 34px;
}

.brand {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .08em;
}

.apps {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.app {
  height: 74px;
  padding: 0 20px;
  border: 1px solid #deded9;
  border-radius: 12px;
  background: #fff;
  color: #171717;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
  font-size: 15px;
  font-weight: 500;
  transition:
    border-color .15s ease,
    transform .15s ease,
    background .15s ease;
}

.app:hover {
  border-color: #b8b8b1;
  background: #fdfdfc;
}

.app:active {
  transform: scale(.995);
}

.arrow {
  color: #7b7b75;
  font-weight: 400;
}

.dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, .26);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.dialog-backdrop[hidden] {
  display: none;
}

.dialog {
  width: min(360px, 100%);
  padding: 22px;
  border-radius: 14px;
  background: #fff;
  box-shadow:
    0 18px 60px rgba(0, 0, 0, .18);
}

.dialog-title {
  margin-bottom: 18px;
  font-size: 15px;
  font-weight: 600;
}

.password {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #d7d7d2;
  border-radius: 9px;
  outline: none;
  background: #fff;
}

.password:focus {
  border-color: #888882;
}

.error {
  min-height: 20px;
  padding-top: 7px;
  color: #b42318;
  font-size: 12px;
}

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

.actions button {
  height: 36px;
  min-width: 66px;
  border-radius: 8px;
  cursor: pointer;
}

.cancel {
  border: 1px solid #d8d8d3;
  background: #fff;
  color: #333;
}

.enter {
  border: 1px solid #171717;
  background: #171717;
  color: #fff;
}

@media (max-width: 640px) {
  .page {
    width: calc(100% - 28px);
    padding-top: 42px;
  }

  .header {
    margin-bottom: 24px;
  }

  .apps {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .app {
    height: 62px;
    padding: 0 17px;
  }
}
