:root {
  color-scheme: light;
  font-family:
    Inter, "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: #f3f7fb;
  color: #13243a;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 8% 12%, rgba(22, 147, 187, 0.16), transparent 28rem),
    radial-gradient(circle at 92% 90%, rgba(20, 99, 169, 0.12), transparent 30rem),
    #f3f7fb;
}

a {
  color: #075f91;
}

.auth-header {
  display: flex;
  justify-content: center;
  padding: 28px 20px 8px;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #122840;
  font-weight: 800;
  text-decoration: none;
}

.auth-brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.auth-layout {
  display: grid;
  place-items: center;
  padding: 28px 20px 64px;
}

.auth-card {
  width: min(100%, 480px);
  padding: clamp(24px, 5vw, 40px);
  border: 1px solid rgba(34, 76, 110, 0.14);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 24px 70px rgba(31, 68, 103, 0.14);
}

.auth-card-wide {
  width: min(100%, 880px);
}

.auth-card h2 {
  margin: 30px 0 14px;
  font-size: 1.15rem;
}

.auth-eyebrow {
  margin: 0 0 8px;
  color: #08779d;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.2rem);
}

.auth-lead {
  margin: 12px 0 26px;
  color: #52657b;
  line-height: 1.75;
}

.auth-form {
  display: grid;
  gap: 18px;
}

.auth-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.auth-form input {
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid #b9c9d8;
  border-radius: 11px;
  background: #fff;
  color: #13243a;
  font: inherit;
}

.auth-form select {
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid #b9c9d8;
  border-radius: 11px;
  background: #fff;
  color: #13243a;
  font: inherit;
}

.auth-form input:focus {
  border-color: #08779d;
  outline: 3px solid rgba(8, 119, 157, 0.14);
}

.auth-form button {
  min-height: 50px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #08779d, #075f91);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.auth-form button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.auth-status {
  min-height: 1.5em;
  margin: 0;
  color: #52657b;
  line-height: 1.55;
}

.auth-status[data-state="error"] {
  color: #a4212f;
}

.auth-status[data-state="success"] {
  color: #087047;
}

.auth-switch {
  margin: 24px 0 0;
  text-align: center;
}

.auth-note {
  margin: 20px 0 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: #eef7fb;
  color: #35546b;
  font-size: 0.9rem;
  line-height: 1.65;
}

.billing-summary {
  display: grid;
  gap: 12px;
  margin: 18px 0;
  padding: 16px;
  border: 1px solid #cddce8;
  border-radius: 14px;
  background: #f8fbfd;
  color: #35546b;
  line-height: 1.6;
}

.billing-summary button {
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: #075f91;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

[data-new-project][aria-disabled="true"] {
  color: #6f7f8d;
  pointer-events: none;
  text-decoration: none;
}

.auth-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  color: #3d5369;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.6;
}

.auth-consent input {
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
}

.account-list {
  display: grid;
  gap: 10px;
}

.account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 15px;
  border: 1px solid #d8e3ec;
  border-radius: 12px;
  background: #f8fbfd;
}

.account-row div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.account-row strong,
.account-row small {
  overflow-wrap: anywhere;
}

.account-row button {
  min-width: 70px;
  min-height: 38px;
  border: 1px solid #8ba9bd;
  border-radius: 9px;
  background: #fff;
  color: #174763;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.account-inline-form {
  grid-template-columns: minmax(0, 1fr) 140px auto;
  align-items: end;
  margin: 18px 0 24px;
}

@media (max-width: 700px) {
  .account-inline-form {
    grid-template-columns: 1fr;
  }

  .account-row {
    align-items: flex-start;
    flex-direction: column;
  }
}
