:root {
  color-scheme: light;
  font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", system-ui, sans-serif;
  color: #242526;
  background: #f7f7f7;
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

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

button, input { font: inherit; }

.login-page { display: flex; flex-direction: column; }

.login-header {
  min-height: 76px;
  padding: 18px clamp(24px, 4vw, 52px);
  display: flex;
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #e3e4e5;
}

.login-brand { display: flex; align-items: center; gap: 12px; }
.login-brand-name { font-size: 28px; font-weight: 800; letter-spacing: -.08em; line-height: 1; }
.login-brand-sub { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: #737578; }

.login-main {
  width: 100%;
  max-width: 526px;
  margin: auto;
  padding: 56px 22px;
}

.login-card {
  padding: clamp(28px, 5vw, 48px);
  background: #fff;
  border: 1px solid #e3e4e5;
  border-radius: 22px;
  box-shadow: 0 16px 42px rgba(0, 0, 0, .035);
}

.login-eyebrow { margin: 0 0 12px; color: #85878a; font-size: 11px; font-weight: 800; letter-spacing: .2em; }
h1 { margin: 0; font-size: clamp(29px, 6vw, 36px); line-height: 1.35; letter-spacing: -.04em; }
.login-intro { margin: 14px 0 30px; color: #6c6f72; font-size: 14px; line-height: 1.8; }
.login-card form { display: flex; flex-direction: column; }
.login-card label { margin-bottom: 9px; font-size: 14px; font-weight: 700; }
.login-card input {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  color: #242526;
  background: #fff;
  border: 1px solid #d8dadc;
  border-radius: 10px;
  outline: none;
  font-size: 16px;
}

.login-card input::placeholder { color: #a1a4a6; font-weight: 400; }
.login-card input:focus-visible { border-color: #5e8e72; box-shadow: 0 0 0 3px rgba(77, 139, 96, .17); }

.login-button {
  min-height: 52px;
  margin-top: 20px;
  padding: 11px 20px;
  border: 1px solid #242526;
  border-radius: 11px;
  background: #242526;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.login-button:hover { background: #3d3f41; }
.login-button:disabled { opacity: .55; cursor: wait; }
.login-button:focus-visible, .login-secondary-actions button:focus-visible { outline: 3px solid #72a080; outline-offset: 3px; }

.login-message { margin: 0 0 22px; padding: 12px 14px; border-radius: 10px; background: #edf5ef; color: #285b39; font-size: 13px; line-height: 1.65; }
.login-message[data-kind="error"] { background: #fff1f0; color: #a5362d; }

.login-sent-to { margin: 0 0 23px; color: #65686b; font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.login-sent-to strong { color: #2d2f31; }
.login-secondary-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 18px; margin-top: 20px; }
.login-secondary-actions button { padding: 2px 0; border: 0; background: none; color: #426d50; font-size: 13px; font-weight: 700; cursor: pointer; }
.login-secondary-actions button:hover { text-decoration: underline; }
.login-secondary-actions button:disabled { opacity: .5; cursor: wait; }
.login-help { margin: 21px 8px 0; color: #777a7d; font-size: 12px; line-height: 1.8; text-align: center; }

.login-mfa-description, .login-mfa-step, .login-mfa-help {
  color: #65686b;
  font-size: 14px;
  line-height: 1.8;
}
.login-mfa-description { margin: 0 0 18px; }
#login-mfa-start-button { width: 100%; }
.login-mfa-step { margin: 24px 0 12px; }
.login-mfa-qr { display: block; width: min(230px, 100%); height: auto; margin: 0 auto 20px; }
.login-mfa-help { margin: 24px 0 0; font-size: 12px; }

@media (max-width: 480px) {
  .login-header { min-height: 66px; }
  .login-main { padding: 38px 16px 52px; }
  .login-card { border-radius: 16px; }
}
