:root {
  --brand: #fc603a;
  --brand-deep: #d94826;
  --brand-bright: #ff6f48;
  --brand-soft: rgba(252, 96, 58, 0.12);
  --ink: #0f1218;
  --ink-muted: #5b6472;
  --line: rgba(15, 18, 24, 0.1);
  --font-display: "Outfit", sans-serif;
  --font-body: "Source Sans 3", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.auth-body {
  font-family: var(--font-body);
  color: var(--ink);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.auth-split {
  display: grid;
  min-height: 100vh;
}

@media (min-width: 920px) {
  .auth-split {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.auth-brand {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 20% 20%, rgba(252, 96, 58, 0.45), transparent 55%),
    linear-gradient(155deg, #1a1e26 0%, #12151c 50%, #1c1418 100%);
  color: #fff;
  padding: 2rem 1.75rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
}

.auth-brand-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.auth-logo-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 0.4rem;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.auth-back {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

.auth-back:hover {
  color: #fff;
}

.auth-brand-copy {
  position: relative;
  z-index: 2;
  max-width: 28rem;
}

.auth-welcome {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-bright);
  margin-bottom: 0.85rem;
}

.auth-brand-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
  margin-bottom: 1rem;
}

.auth-brand-copy h1 span {
  color: var(--brand-bright);
}

.auth-brand-copy p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 34ch;
}

.auth-points {
  position: relative;
  z-index: 2;
  list-style: none;
  display: grid;
  gap: 0.55rem;
  margin-top: 1.75rem;
}

.auth-points li {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.78);
  padding-left: 1.1rem;
  position: relative;
}

.auth-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--brand);
}

.auth-svg-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.22;
}

.auth-svg-layer svg {
  position: absolute;
  color: #fff;
}

.auth-svg-layer .s1 { width: 120px; top: 18%; right: 10%; }
.auth-svg-layer .s2 { width: 90px; bottom: 22%; left: 12%; }
.auth-svg-layer .s3 { width: 70px; top: 42%; left: 8%; }
.auth-svg-layer .s4 { width: 110px; bottom: 12%; right: 18%; }

.auth-panel {
  background: #f5f6f8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
}

.auth-card {
  width: min(100%, 420px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 20px 50px rgba(15, 18, 24, 0.08);
}

.auth-card h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
}

.auth-card > p {
  color: var(--ink-muted);
  font-size: 0.95rem;
  margin-bottom: 1.35rem;
}

.oauth-row {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1.15rem;
}

.oauth-row-below {
  margin-bottom: 0;
  margin-top: 0.15rem;
}

.auth-divider + .oauth-row-below {
  margin-top: 0;
}

.oauth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 0.65rem;
  padding: 0.8rem 1rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.oauth-btn:hover {
  border-color: rgba(15, 18, 24, 0.22);
  background: #fafbfc;
}

.oauth-btn svg {
  flex-shrink: 0;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink-muted);
  font-size: 0.8rem;
  margin-bottom: 1.15rem;
}

.auth-form + .auth-divider {
  margin-top: 1.15rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.auth-form {
  display: grid;
  gap: 0.85rem;
}

.auth-field {
  display: grid;
  gap: 0.35rem;
}

.auth-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.auth-field input,
.auth-field textarea,
.auth-field select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 0.65rem;
  padding: 0.8rem 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-field textarea {
  min-height: 120px;
  resize: vertical;
}

.auth-field input:focus,
.auth-field textarea:focus,
.auth-field select:focus {
  border-color: rgba(252, 96, 58, 0.55);
  box-shadow: 0 0 0 4px rgba(252, 96, 58, 0.12);
}

.auth-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 0;
  border-radius: 0.65rem;
  padding: 0.9rem 1.1rem;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(252, 96, 58, 0.3);
  margin-top: 0.25rem;
}

.auth-submit:hover {
  background: var(--brand-deep);
}

.auth-foot {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.auth-foot a {
  color: var(--brand-deep);
  font-weight: 700;
}

.auth-note {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: var(--ink-muted);
  text-align: center;
}

.auth-note.is-ok {
  color: #1f7a45;
  font-weight: 600;
}

@media (max-width: 919px) {
  .auth-brand {
    min-height: auto;
    padding-bottom: 2rem;
  }

  .auth-svg-layer {
    opacity: 0.12;
  }
}

.contact-page {
  height: 100vh;
  overflow: hidden;
}

.contact-page .auth-split {
  height: 100vh;
  min-height: 100vh;
}

.contact-page .auth-panel {
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1.25rem;
  overflow: hidden;
}

.contact-page .auth-card {
  width: min(100%, 440px);
  padding: 1.25rem 1.25rem 1.1rem;
  box-shadow: 0 12px 32px rgba(15, 18, 24, 0.06);
}

.contact-page .auth-card h2 {
  font-size: 1.35rem;
  margin-bottom: 0.2rem;
}

.contact-page .auth-card > p {
  font-size: 0.88rem;
  margin-bottom: 0.85rem;
}

.contact-page .auth-form {
  gap: 0.55rem;
}

.contact-page .auth-field label {
  font-size: 0.75rem;
}

.contact-page .auth-field input,
.contact-page .auth-field textarea,
.contact-page .auth-field select {
  padding: 0.6rem 0.8rem;
  border-radius: 0.55rem;
}

.contact-page .auth-field textarea {
  min-height: 72px;
  max-height: 88px;
  resize: none;
}

.contact-page .auth-submit {
  padding: 0.75rem 1rem;
  margin-top: 0.15rem;
}

.contact-page .auth-note,
.contact-page .auth-foot {
  margin-top: 0.55rem;
  font-size: 0.8rem;
}

.contact-page .auth-brand {
  padding: 1.5rem 1.5rem 2.5rem;
  gap: 1.25rem;
  justify-content: space-between;
}

.contact-page .auth-brand-copy {
  margin-top: auto;
  padding-bottom: 1.5rem;
}

.contact-page .auth-brand-copy h1 {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  margin-bottom: 0.7rem;
}

.contact-page .auth-brand-copy p {
  font-size: 0.95rem;
}

.contact-page .auth-points {
  margin-top: 1.1rem;
  gap: 0.4rem;
}

.contact-page .auth-points li {
  font-size: 0.86rem;
}

@media (max-width: 919px) {
  .contact-page {
    height: auto;
    overflow: auto;
  }

  .contact-page .auth-split {
    height: auto;
    min-height: 100vh;
  }

  .contact-page .auth-panel {
    overflow: visible;
  }
}

.login-page {
  position: relative;
  min-height: 100vh;
  color: #fff;
  background: #0c0e13;
  overflow-x: hidden;
}

.login-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 45% at 50% 42%, rgba(252, 96, 58, 0.22), transparent 62%),
    radial-gradient(ellipse 40% 35% at 12% 80%, rgba(252, 96, 58, 0.12), transparent 55%),
    radial-gradient(ellipse 35% 30% at 88% 18%, rgba(255, 111, 72, 0.1), transparent 50%),
    linear-gradient(165deg, #12151c 0%, #0c0e13 45%, #161018 100%);
}

.login-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
}

.login-glow-a {
  width: min(48vw, 420px);
  height: min(48vw, 420px);
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(252, 96, 58, 0.35);
  animation: loginPulse 8s ease-in-out infinite;
}

.login-glow-b {
  width: 280px;
  height: 280px;
  bottom: 5%;
  left: 8%;
  background: rgba(217, 72, 38, 0.28);
  animation: loginDrift 14s ease-in-out infinite;
}

.login-glow-c {
  width: 220px;
  height: 220px;
  top: 18%;
  right: 6%;
  background: rgba(255, 111, 72, 0.22);
  animation: loginDrift 11s ease-in-out infinite reverse;
}

.login-noise {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.login-watermark {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(6rem, 22vw, 16rem);
  letter-spacing: -0.06em;
  line-height: 1;
  color: rgba(255, 255, 255, 0.03);
  user-select: none;
  white-space: nowrap;
}

.login-icon {
  position: absolute;
  color: rgba(255, 255, 255, 0.14);
  animation: loginFloat 9s ease-in-out infinite;
}

.login-icon-1 { width: 92px; top: 14%; left: 8%; animation-delay: 0s; color: rgba(252, 96, 58, 0.35); }
.login-icon-2 { width: 78px; top: 22%; right: 10%; animation-delay: -2s; color: rgba(255, 255, 255, 0.16); }
.login-icon-3 { width: 70px; bottom: 18%; left: 12%; animation-delay: -4s; color: rgba(255, 111, 72, 0.3); }
.login-icon-4 { width: 88px; bottom: 14%; right: 9%; animation-delay: -1.5s; color: rgba(255, 255, 255, 0.14); }
.login-icon-5 { width: 74px; top: 48%; left: 4%; animation-delay: -3s; color: rgba(252, 96, 58, 0.22); }
.login-icon-6 { width: 80px; top: 52%; right: 5%; animation-delay: -5s; color: rgba(255, 255, 255, 0.15); }
.login-icon-7 { width: 64px; top: 8%; right: 28%; animation-delay: -6s; color: rgba(255, 111, 72, 0.25); }
.login-icon-8 { width: 58px; bottom: 8%; left: 32%; animation-delay: -2.5s; color: rgba(255, 255, 255, 0.12); }

@keyframes loginFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(2deg); }
}

@keyframes loginPulse {
  0%, 100% { opacity: 0.45; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.7; transform: translateX(-50%) scale(1.08); }
}

@keyframes loginDrift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(18px, -22px); }
}

@keyframes loginCardIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.login-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.login-page .auth-logo {
  color: #fff;
}

.login-top-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.62);
}

.login-top-link:hover {
  color: #fff;
}

.login-main {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.25rem 3rem;
  min-height: calc(100vh - 4.5rem);
}

.login-card {
  position: relative;
  width: min(100%, 420px);
  background: rgba(255, 255, 255, 0.97);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1.35rem;
  padding: 1.85rem 1.6rem 1.5rem;
  box-shadow:
    0 0 0 1px rgba(252, 96, 58, 0.08),
    0 28px 70px rgba(0, 0, 0, 0.45),
    0 8px 24px rgba(252, 96, 58, 0.12);
  overflow: hidden;
  animation: loginCardIn 0.65s ease-out both;
}

.login-card-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-deep), var(--brand-bright), var(--brand));
}

.login-kicker {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.55rem;
}

.login-card h1 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2rem);
  letter-spacing: -0.04em;
  margin-bottom: 0.4rem;
}

.login-lead {
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.45;
  margin-bottom: 1.35rem;
}

.login-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.login-forgot {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-deep);
}

.login-forgot:hover {
  color: var(--brand);
}

.login-remember {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.88rem;
  color: var(--ink-muted);
  cursor: pointer;
  user-select: none;
}

.login-remember input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--brand);
  cursor: pointer;
}

.login-page .oauth-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.login-page .auth-divider {
  margin-top: 1.1rem;
}

@media (max-width: 720px) {
  .login-icon-5,
  .login-icon-6,
  .login-icon-7,
  .login-icon-8 {
    display: none;
  }

  .login-icon {
    opacity: 0.7;
  }

  .login-watermark {
    font-size: clamp(5rem, 28vw, 9rem);
  }

  .login-main {
    padding-bottom: 2rem;
  }
}
