/* Sign-in, invite, reset, MFA and MCP OAuth pages (layouts/auth.html). */

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  background: var(--bg);
}
.auth-aside {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 56px;
  color: var(--ink-text);
  background:
    radial-gradient(700px 480px at 85% 10%, rgba(255, 107, 61, 0.22), transparent 60%),
    radial-gradient(600px 420px at 0% 100%, rgba(20, 184, 166, 0.14), transparent 60%),
    var(--ink-900);
}
.auth-aside::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -40px;
  width: 420px;
  height: 420px;
  opacity: 0.35;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='64' viewBox='0 0 56 64'%3E%3Cpath d='M28 2l25 14v32L28 62 3 48V16z' fill='none' stroke='%23FF6B3D' stroke-opacity='.5' stroke-width='1.1'/%3E%3C/svg%3E");
  pointer-events: none;
}
.auth-aside .logo { height: 32px; width: auto; max-width: 160px; align-self: flex-start; object-fit: contain; }
.auth-aside h2 { color: #fff; font-size: 34px; font-weight: 780; letter-spacing: -0.03em; line-height: 1.1; max-width: 460px; margin: 0 0 16px; }
.auth-aside p { color: var(--ink-muted); max-width: 440px; font-size: 15px; margin: 0; }
.auth-aside .points { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-direction: column; gap: 12px; }
.auth-aside .points li { display: flex; gap: 10px; align-items: center; color: var(--ink-text); font-size: 14px; }
.auth-aside .points i { color: var(--ember-400); }
.auth-aside .foot { font-size: 12px; color: var(--ink-muted); position: relative; z-index: 1; }

.auth-main { display: grid; place-items: center; padding: 40px 24px; }
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--elev-2);
  padding: 32px;
}
.auth-card h1 { font-size: var(--fs-xl); font-weight: 750; letter-spacing: -0.02em; margin: 6px 0 6px; }
.auth-card .lede { color: var(--muted); margin: 0 0 22px; }
.auth-mobile-logo { display: none; height: 28px; width: auto; max-width: 140px; object-fit: contain; margin-bottom: 18px; }

.sso-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 44px; margin-bottom: 10px;
  border-radius: var(--r-md); border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text);
  font-weight: 600; text-decoration: none;
}
.hive .sso-btn { color: var(--text); }
.sso-btn:hover { background: var(--surface-2); border-color: var(--muted); color: var(--text); }
.sso-btn svg { width: 18px; height: 18px; }

.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; margin: 18px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.pin-input {
  font-family: var(--mono);
  font-size: 26px;
  letter-spacing: 0.45em;
  text-align: center;
  font-weight: 600;
  min-height: 56px;
}
.auth-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: 13px; }
.auth-foot { margin-top: 22px; font-size: 12px; color: var(--muted); text-align: center; }

@media (max-width: 900px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-mobile-logo { display: block; }
  .auth-main { align-items: start; padding-top: 48px; }
  .auth-card { padding: 24px 20px; border-radius: var(--r-lg); }
}
