@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --pc-orange: #ff8a00;
  --pc-orange-dark: #df7600;
  --pc-ink: #111111;
  --pc-muted: #6b665f;
  --pc-border: rgba(17, 17, 17, 0.1);
  --pc-panel: rgba(255, 255, 255, 0.86);
  --pc-soft: #f7f2eb;
}

* {
  box-sizing: border-box;
}

body.pc-auth-page {
  min-height: 100vh;
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--pc-ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 138, 0, 0.16), transparent 28%),
    radial-gradient(circle at 90% 12%, rgba(17, 17, 17, 0.08), transparent 24%),
    linear-gradient(180deg, #fbf7f1 0%, #f5efe7 100%);
}

.pc-auth-shell {
  width: min(100%, 520px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px 18px 36px;
  display: grid;
  align-content: center;
  gap: 22px;
}

.pc-auth-shell--wide {
  width: min(100%, 860px);
}

.pc-auth-brand {
  width: fit-content;
  justify-self: center;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  color: var(--pc-ink);
  text-decoration: none;
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.pc-auth-brand strong {
  color: var(--pc-orange);
}

.pc-auth-card {
  position: relative;
  overflow: hidden;
  padding: 28px 22px 22px;
  border: 1px solid var(--pc-border);
  border-radius: 28px;
  background: var(--pc-panel);
  box-shadow: 0 28px 70px rgba(17, 17, 17, 0.12);
  backdrop-filter: blur(18px);
}

.pc-auth-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--pc-orange), rgba(255, 138, 0, 0.14));
}

.pc-auth-card__intro {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
  text-align: center;
}

.pc-auth-kicker {
  color: rgba(17, 17, 17, 0.52);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pc-auth-card h1 {
  margin: 0;
  font-size: clamp(2rem, 7vw, 3rem);
  line-height: 1;
  letter-spacing: -0.07em;
}

.pc-auth-card p {
  max-width: 45ch;
  margin: 0 auto;
  color: var(--pc-muted);
  line-height: 1.65;
}

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

.pc-auth-grid {
  grid-template-columns: 1fr;
}

.pc-auth-field {
  display: grid;
  gap: 8px;
}

.pc-auth-field span {
  color: rgba(17, 17, 17, 0.6);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.pc-auth-input {
  position: relative;
  min-height: 54px;
  display: flex;
  align-items: center;
}

.pc-auth-input > i {
  position: absolute;
  left: 16px;
  z-index: 2;
  color: rgba(17, 17, 17, 0.34);
  pointer-events: none;
  transition: color 0.25s ease, transform 0.25s ease;
}

.pc-auth-input input {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 54px;
  padding: 15px 16px 15px 46px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 16px;
  background: rgba(255, 253, 249, 0.96);
  color: var(--pc-ink);
  font: inherit;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.pc-auth-input input:focus {
  border-color: rgba(255, 138, 0, 0.82);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 138, 0, 0.12), 0 16px 32px rgba(17, 17, 17, 0.06);
  transform: translateY(-1px);
}

.pc-auth-input input:-webkit-autofill,
.pc-auth-input input:-webkit-autofill:hover,
.pc-auth-input input:-webkit-autofill:focus,
.pc-auth-input input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--pc-ink) !important;
  caret-color: var(--pc-ink);
  box-shadow: 0 0 0 1000px rgba(255, 253, 249, 0.96) inset !important;
  border-color: rgba(255, 138, 0, 0.82);
  transition: background-color 9999s ease-in-out 0s, color 9999s ease-in-out 0s;
}

.pc-auth-input input:-webkit-autofill:focus {
  box-shadow:
    0 0 0 1000px #fff inset !important,
    0 0 0 4px rgba(255, 138, 0, 0.12),
    0 16px 32px rgba(17, 17, 17, 0.06) !important;
}

.pc-auth-input:focus-within > i {
  color: var(--pc-orange);
  transform: translateY(-1px) scale(1.06);
}

.pc-auth-eye {
  position: absolute;
  right: 10px;
  z-index: 3;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: rgba(17, 17, 17, 0.44);
  cursor: pointer;
}

.pc-auth-submit {
  min-height: 58px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--pc-orange), var(--pc-orange-dark));
  color: #fff;
  font: inherit;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 18px 34px rgba(255, 138, 0, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.pc-auth-submit:hover {
  transform: translateY(-2px);
  filter: saturate(1.05);
  box-shadow: 0 22px 42px rgba(255, 138, 0, 0.26);
}

.pc-auth-submit:disabled {
  cursor: progress;
  filter: grayscale(0.3);
  transform: none;
}

.pc-auth-footer {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--pc-border);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

.pc-auth-footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  color: var(--pc-ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 750;
  background: rgba(17, 17, 17, 0.04);
  border: 1px solid rgba(17, 17, 17, 0.07);
  transition: transform 0.2s ease, background 0.2s ease;
}

.pc-auth-footer a:hover {
  transform: translateY(-1px);
  background: #fff;
}

.pc-auth-message {
  margin-bottom: 16px;
  padding: 13px 14px;
  border-radius: 16px;
  border: 1px solid rgba(217, 48, 37, 0.18);
  background: rgba(255, 245, 245, 0.92);
  color: #a2251d;
  font-weight: 650;
  line-height: 1.45;
}

.pc-auth-message.is-success {
  border-color: rgba(22, 163, 74, 0.22);
  background: rgba(236, 253, 245, 0.92);
  color: #087239;
}

@media (min-width: 760px) {
  .pc-auth-shell {
    padding: 32px;
  }

  .pc-auth-card {
    padding: 34px 32px 28px;
  }

  .pc-auth-card--register .pc-auth-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pc-auth-field--full {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
