:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #20242b;
  background: #f4f6f8;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 280px;
  min-height: 100vh;
  margin: 0;
}

button,
input {
  font: inherit;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(100%, 380px);
  padding: 32px;
  background: #ffffff;
  border: 1px solid #dfe3e8;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgb(24 32 44 / 8%);
}

h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.3;
}

.login-description {
  margin: 8px 0 24px;
  color: #626b76;
  font-size: 14px;
}

form {
  display: grid;
  gap: 10px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: -8px 0 24px;
  padding: 4px;
  border: 1px solid #dfe3e8;
  border-radius: 8px;
  background: #f4f6f8;
}

.auth-tabs .auth-tab {
  min-height: 38px;
  margin: 0;
  border-color: transparent;
  background: transparent;
  color: #626b76;
}

.auth-tabs .auth-tab.active {
  border-color: #c9d1da;
  background: #ffffff;
  color: #20242b;
  box-shadow: 0 2px 8px rgb(24 32 44 / 7%);
}

.form-hint {
  margin: 4px 0 0;
  color: #626b76;
  font-size: 12px;
  line-height: 1.5;
}

label {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 600;
}

input {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #b8c0ca;
  border-radius: 6px;
  background: #ffffff;
  color: inherit;
  outline: none;
}

input:focus {
  border-color: #356fae;
  box-shadow: 0 0 0 3px rgb(53 111 174 / 14%);
}

button,
.session-actions a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  padding: 9px 16px;
  border: 1px solid #2f639c;
  border-radius: 6px;
  background: #356fae;
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

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

.session-panel {
  padding-top: 4px;
}

.session-panel p {
  margin: 16px 0 8px;
  line-height: 1.6;
}

.session-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.session-actions .secondary {
  border-color: #aeb6c0;
  background: #ffffff;
  color: #303740;
}

.login-message {
  min-height: 22px;
  margin: 14px 0 0;
  color: #a1303a;
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 440px) {
  .login-card {
    padding: 24px;
  }

  .session-actions {
    grid-template-columns: 1fr;
  }
}
