* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: #000;
  background: #f5f5f5;
  font-family: "Roboto", "新ゴ R", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root {
  --background: #f5f5f5;
  --assort: #3b83c1;
  --assort-hover: #9bbad5;
  --border: #ddd;
  --white: #fff;
  --black-100: #000;
  --black-50: #777;
  --hover-bg: #f3f7fb;
}

.container.-login,
.login {
  min-height: 100vh;
}

.login {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 24px;
  background: var(--background);
}

.login-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;

  a {
    color: var(--assort);
    text-decoration: none;
    font-size: 14px;
  }
  a:hover {
    text-decoration: underline;
  }
}

.login-nav-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.login-nav-sub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.login-contents {
  width: min(100%, 400px);
  min-width: 400px;
  padding: 32px 24px 24px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 4px 4px -1px rgba(0, 0, 0, .1), 0 2px 4px -1px rgba(0, 0, 0, .06);
  text-align: center;
  font-size: 14px;
  line-height: 1;
}

.login-logo {
  display: flex;
  justify-content: center;
  max-width: 150px;
  margin: 0 auto 40px;
}

.login-logo img {
  width: 100%;
  height: auto;
}

.login-label {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1;
  font-weight: 700;
}

.login-desc {
  margin: 0 -5px 24px;
  font-size: 12px;
  line-height: 1.333;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-form input {
  width: 100%;
  min-height: 40px;
  padding: 6.5px 16px;
  border: 1px solid var(--border);
  border-radius: 0;
  font-size: 14px;
  line-height: 1;
  text-align: left;
}

.otp-inputs {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.login-form .otp-digit {
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 8px;
  border-radius: 4px;
  font-size: 20px;
  text-align: center;
}

.button,
.logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 4px;
  min-height: 32px;
  padding: 4px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: var(--assort);
  font-size: 14px;
  line-height: 1.286;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background .3s ease, opacity .3s ease, color .3s ease;
}

.button.-assort {
  background: var(--assort);
  color: var(--white);
}

.button.-assort:hover {
  background-color: var(--assort-hover);
}

.button.-border {
  border-color: var(--border);
  color: var(--black-100);
}

.button:hover {
  background: var(--hover-bg);
}

.button:disabled,
.button[disabled] {
  opacity: .5;
  pointer-events: none;
  background: var(--black-50);
}

.flex {
  display: flex;
}

.flex-c {
  flex-direction: column;
}

.gap-16 {
  gap: 16px;
}

.app-alert {
  margin: 18px 0 0;
  padding: 12px 14px;
  border: 1px solid #f3b7b7;
  border-radius: 6px;
  color: #b42318;
  background: #fff4f4;
}

.text-red {
  color: #b42318;
}

.mt-8 {
  margin-top: 8px;
}

.app-alert p {
  margin: 0;
  line-height: 1.5;
}

.panel {
  width: min(100%, 440px);
  padding: 40px;
  border: 1px solid #d9e1ea;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(28, 42, 64, .08);
}

.logo {
  display: block;
  width: 210px;
  max-width: 100%;
  margin: 0 auto 32px;
}

.page {
  width: min(100%, 960px);
  margin: 0 auto;
  padding: 32px 20px;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.page-header .logo {
  width: 180px;
  margin: 0;
}

.panel {
  width: 100%;
}

dl {
  display: grid;
  gap: 16px;
  margin: 0;
}

dl > div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e7edf4;
}

dt {
  color: #607086;
}

dd {
  margin: 0;
  font-weight: 700;
}

@media (max-width: 560px) {
  .login-contents,
  .panel {
    min-width: 0;
    padding: 28px 20px;
  }

  dl > div {
    grid-template-columns: 1fr;
  }

  .otp-inputs {
    gap: 6px;
  }

  .login-form .otp-digit {
    width: 36px;
    height: 40px;
  }
}
