*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: #f0f4f8;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1e293b;
}

.auth_wrap {
  width: 100%;
  max-width: 420px;
  padding: 20px;
}

.auth_card {
  background: #fff;
  border-radius: 12px;
  padding: 48px 40px 40px;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
}

.auth_logo {
  text-align: center;
  margin-bottom: 36px;
}

.auth_logo_text {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: .08em;
  color: #1e293b;
}

.auth_logo_sub {
  margin-top: 6px;
  font-size: 13px;
  color: #94a3b8;
  letter-spacing: .05em;
}

/* アラート */
.alert {
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 24px;
  font-size: 13px;
  line-height: 1.7;
}

.alert p { margin: 0; }
.alert p + p { margin-top: 4px; }

.alert_error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
}

.alert_success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #16a34a;
}

/* フォーム */
.auth_form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form_group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form_group label {
  font-size: 13px;
  font-weight: 500;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 6px;
}

.required {
  font-size: 11px;
  background: #ef4444;
  color: #fff;
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 500;
}

.form_group input {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 14px;
  font-family: inherit;
  color: #1e293b;
  transition: border-color .2s;
  outline: none;
}

.form_group input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

.form_group small {
  font-size: 12px;
  color: #94a3b8;
}

.btn_primary {
  margin-top: 8px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 13px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: .04em;
  transition: background .2s;
}

.btn_primary:hover {
  background: #1d4ed8;
}

.auth_footer {
  margin-top: 24px;
  text-align: center;
  font-size: 13px;
}

.auth_footer a {
  color: #2563eb;
  text-decoration: none;
}

.auth_footer a:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  .auth_card { padding: 36px 24px 32px; }
}
