:root {
  --bg: #0f172a;
  --panel: #12110f;
  --panel-2: #111827;
  --line: #2b2a27;
  --muted: #7d8780;
  --text: #f7f3ee;
  --pink: #ead2d0;
  --danger: #ff5e5b;
  --blue: #4e86ff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at center, rgba(234, 210, 208, .05), transparent 28rem),
    radial-gradient(circle, rgba(255,255,255,.12) 1px, transparent 1px),
    var(--bg);
  background-size: auto, 36px 36px, auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

.auth-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 18px;
}

.brand-lockup {
  text-align: center;
  margin-bottom: 36px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  margin-right: 10px;
  color: #111;
  background: var(--pink);
  border-radius: 4px;
  vertical-align: middle;
}

.brand-lockup h1 {
  display: inline-block;
  margin: 0;
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0;
}

.brand-lockup p,
.login-card__header h2,
.field > span,
.auth-footer {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .22em;
}

.brand-lockup p {
  margin: 13px 0 0;
  font-size: 12px;
}

.login-card {
  width: min(100%, 480px);
  background: rgba(18, 17, 15, .96);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 22px 90px rgba(0, 0, 0, .38);
}

.login-card__header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 42px;
  background: var(--panel-2);
  border-bottom: 1px solid #243651;
  color: var(--blue);
}

.login-card__header h2 {
  margin: 0;
  color: var(--blue);
  font-size: 12px;
}

.login-form {
  padding: 30px;
}

.google-button,
.primary-button,
.input-wrap {
  width: 100%;
  height: 46px;
  border-radius: 0;
  font: inherit;
}

.google-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #fff;
  background: transparent;
  border: 1px solid var(--line);
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  font-weight: 700;
  cursor: pointer;
}

.google-button:hover { border-color: var(--pink); }

.google-g {
  font-size: 25px;
  font-weight: 800;
  color: #4285f4;
}

.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 26px 0;
  color: var(--muted);
  font-size: 12px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.field {
  display: block;
  margin-bottom: 18px;
}

.field > span:first-child {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
}

.input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  background: #191814;
  border: 1px solid var(--line);
  color: var(--muted);
}

.input-wrap svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

input {
  width: 100%;
  min-width: 0;
  color: var(--text);
  border: 0;
  outline: 0;
  background: transparent;
  font: 16px system-ui, -apple-system, Segoe UI, sans-serif;
}

.field.is-invalid .input-wrap { border-color: var(--danger); }

.error-text {
  min-height: 17px;
  display: block;
  margin-top: 6px;
  color: var(--danger);
  font: 13px system-ui, -apple-system, Segoe UI, sans-serif;
}

.ghost-icon {
  width: 28px;
  height: 28px;
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.primary-button {
  margin-top: 0;
  border: 1px solid var(--pink);
  background: var(--pink);
  color: #080808;
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  font-weight: 800;
  cursor: pointer;
}

.form-links {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

a {
  color: #e9efe3;
  font: 700 14px system-ui, -apple-system, Segoe UI, sans-serif;
  text-decoration: none;
}

.auth-status {
  min-height: 20px;
  margin: 16px 0 0;
  color: var(--muted);
  font: 13px system-ui, -apple-system, Segoe UI, sans-serif;
}

.auth-footer {
  margin-top: 26px;
  font-size: 11px;
}

@media (max-width: 520px) {
  .login-form { padding: 24px 18px; }
  .brand-lockup h1 { font-size: 24px; }
  .login-card__header h2 { font-size: 10px; }
  .oauth-container { padding: 24px 18px 0 18px; }
}

.oauth-container {
  padding: 30px 30px 0 30px; 
}


button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}


[hidden] {
  display: none !important;
}