/* AuthForge sign-in / sign-up — matches Titan AI branded preview */
html.auth-page, html.auth-page body {
  margin: 0;
  min-height: 100vh;
  background: #000000;
  color: #ffffff;
  font-family: Inter, system-ui, -apple-system, sans-serif;
}

.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: #121212;
  border: 1px solid #2a2a2a;
  border-radius: 16px;
  padding: 32px 28px 24px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

.auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 22px;
}

.auth-brand img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
}

.auth-brand span {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.auth-title {
  margin: 0 0 18px;
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  color: #6b7280;
  font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #2a2a2a;
}

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

.auth-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
}

.auth-field input {
  width: 100%;
  box-sizing: border-box;
  background: #0a0a0a;
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  color: #ffffff;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.15s ease;
}

.auth-field input::placeholder {
  color: #9ca3af;
}

.auth-field input:focus {
  outline: none;
  border-color: #4f5bd5;
}

.auth-password-wrap {
  position: relative;
}

.auth-password-wrap input {
  padding-right: 44px;
}

.auth-toggle-pw {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 6px;
}

.auth-toggle-pw:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.auth-toggle-pw svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-submit {
  margin-top: 4px;
  width: 100%;
  border: none;
  cursor: pointer;
  background: #3b46e0;
  color: #ffffff;
  border-radius: 8px;
  padding: 13px 16px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.auth-submit:hover {
  background: #4f5bd5;
}

.auth-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.auth-error {
  font-size: 13px;
  color: #ff6b6b;
  background: rgba(255, 68, 68, 0.08);
  border: 1px solid rgba(255, 68, 68, 0.25);
  border-radius: 8px;
  padding: 10px 12px;
}

.auth-forgot {
  display: block;
  margin-top: 14px;
  text-align: center;
  font-size: 14px;
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-forgot:hover {
  opacity: 0.85;
}

.auth-alt {
  margin: 16px 0 0;
  text-align: center;
  font-size: 14px;
  color: #9ca3af;
}

.auth-alt a {
  color: #ffffff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-footer-rule {
  margin: 22px 0 16px;
  height: 1px;
  background: #2a2a2a;
}

.auth-secured {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: #9ca3af;
}

.auth-secured svg {
  width: 14px;
  height: 14px;
  stroke: #9ca3af;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-secured strong {
  color: #ffffff;
  font-weight: 600;
}

.auth-hint {
  margin: 6px 0 0;
  font-size: 12px;
  color: #9ca3af;
}

.auth-home {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px 9px 11px;
  background: #121212;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.auth-home:hover {
  background: #1a1a1a;
  border-color: #3a3a3a;
}

.auth-home svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 520px) {
  .auth-home {
    top: 12px;
    left: 12px;
    padding: 8px 12px 8px 10px;
    font-size: 13px;
  }
}
