:root {
  --pp-bg: #f1f2f4;
  --pp-card: rgba(255, 255, 255, 0.94);
  --pp-text: #111214;
  --pp-muted: #737982;
  --pp-line: #e5e7eb;
  --pp-orange: #ff4328;
  --pp-orange-dark: #ed2d15;
  --pp-shadow: 0 24px 70px rgba(18, 20, 24, 0.1), 0 2px 10px rgba(18, 20, 24, 0.06);
}

html,
body {
  min-height: 100%;
  background:
    radial-gradient(circle at 72% 9%, rgba(255, 255, 255, 0.9), transparent 29rem),
    linear-gradient(180deg, #f7f8fa 0%, var(--pp-bg) 100%) !important;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: 150px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(247, 248, 250, 0.98), rgba(247, 248, 250, 0));
}

#root {
  min-height: 100vh;
}

main,
[class*="MuiContainer-root"],
[class*="MuiBox-root"] {
  letter-spacing: 0 !important;
}

[class*="MuiPaper-root"] {
  border: 1px solid rgba(255, 255, 255, 0.78) !important;
  border-radius: 30px !important;
  background: var(--pp-card) !important;
  box-shadow: 0 18px 48px rgba(18, 20, 24, 0.08), 0 2px 8px rgba(18, 20, 24, 0.05) !important;
}

.paperpulse-auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: min(430px, calc(100vw - 44px));
  margin: 0 auto 24px;
}

.paperpulse-auth-brand img:first-child {
  display: block;
  width: min(330px, 68vw);
  height: auto;
}

.paperpulse-auth-brand img:last-child {
  display: block;
  width: 64px;
  height: auto;
  flex: 0 0 auto;
}

img[src*="logo"],
[data-testid*="logo" i] img {
  display: none !important;
}

form {
  width: min(470px, calc(100vw - 42px)) !important;
}

label,
[class*="MuiFormLabel-root"] {
  color: var(--pp-muted) !important;
  font-weight: 760 !important;
}

input,
[class*="MuiInputBase-root"],
[class*="MuiOutlinedInput-root"] {
  min-height: 50px !important;
  border-radius: 16px !important;
  background: #f8f9fa !important;
}

[class*="MuiOutlinedInput-notchedOutline"] {
  border-color: var(--pp-line) !important;
  border-radius: 16px !important;
}

[class*="Mui-focused"] [class*="MuiOutlinedInput-notchedOutline"],
[class*="MuiOutlinedInput-root"]:hover [class*="MuiOutlinedInput-notchedOutline"] {
  border-color: rgba(255, 67, 40, 0.72) !important;
  box-shadow: 0 0 0 4px rgba(255, 67, 40, 0.1) !important;
}

button[type="submit"],
[class*="MuiButton-contained"],
.paperpulse-admin-entry {
  min-height: 50px !important;
  border-radius: 16px !important;
  background: var(--pp-orange) !important;
  color: #fff !important;
  box-shadow: 0 12px 24px rgba(255, 67, 40, 0.18) !important;
  font-weight: 830 !important;
  text-transform: none !important;
}

button[type="submit"]:hover,
[class*="MuiButton-contained"]:hover,
.paperpulse-admin-entry:hover {
  background: var(--pp-orange-dark) !important;
}

.paperpulse-login-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  width: min(470px, calc(100vw - 42px));
  margin: 18px auto 0;
}

.paperpulse-login-links a,
.paperpulse-login-links button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--pp-line);
  border-radius: 14px;
  background: #fff;
  color: var(--pp-text);
  text-decoration: none;
  font: inherit;
  font-weight: 780;
}

.paperpulse-login-links button {
  color: #8a9097;
  cursor: not-allowed;
}

.paperpulse-login-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 1000;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--pp-text);
  color: #fff;
  font-weight: 760;
  box-shadow: var(--pp-shadow);
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity .18s ease, transform .18s ease;
}

.paperpulse-login-toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
