.account-app {
  position: relative;
  min-height: 100vh;
  background: #030711;
  overflow: hidden;
}

.account-screen {
  position: relative;
  min-height: calc(100svh - 74px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(28px, 7vw, 72px) 16px 48px;
}

.night-sky,
.night-sky::before,
.night-sky::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.night-sky {
  background:
    radial-gradient(circle at 18% 22%, rgba(20, 138, 91, 0.28), transparent 26%),
    radial-gradient(circle at 80% 18%, rgba(242, 184, 75, 0.18), transparent 28%),
    linear-gradient(180deg, #030711 0%, #08131d 56%, #0f261b 100%);
}

.night-sky::before,
.night-sky::after {
  content: "";
  background-image:
    radial-gradient(#ffffff 1px, transparent 1px),
    radial-gradient(rgba(255, 255, 255, 0.72) 1px, transparent 1px);
  background-size: 96px 96px, 138px 138px;
  background-position: 0 0, 34px 58px;
  opacity: 0.8;
  animation: star-drift 28s linear infinite;
}

.night-sky::after {
  opacity: 0.45;
  animation-duration: 42s;
  animation-direction: reverse;
  filter: blur(0.4px);
}

@keyframes star-drift {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-96px, 96px, 0);
  }
}

.auth-card {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  padding: clamp(20px, 4vw, 30px);
  background: rgba(7, 18, 22, 0.86);
  border: 1px solid rgba(220, 233, 225, 0.18);
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  color: #ffffff;
  backdrop-filter: blur(16px);
}

.auth-heading {
  text-align: center;
  margin-bottom: 20px;
}

.auth-heading h1 {
  margin: 0;
  font-size: clamp(1.9rem, 6vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.auth-switch {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  padding: 4px;
  margin-bottom: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(220, 233, 225, 0.16);
  border-radius: var(--radius);
}

.auth-switch button {
  min-height: 42px;
  background: transparent;
  border: 0;
  border-radius: calc(var(--radius) - 2px);
  color: #bed0c6;
  font-weight: 900;
}

.auth-switch button.is-active {
  background: var(--primary);
  color: #ffffff;
}

.auth-form {
  display: none;
  gap: 14px;
  min-width: 0;
}

.auth-form.is-active {
  display: grid;
}

.auth-form h2 {
  margin: 0;
  font-size: 1.2rem;
}

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

.social-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(220, 233, 225, 0.28);
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 900;
}

.social-icon {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
}

.google-icon {
  background: #db4437;
}

.linkedin-icon {
  background: #0a66c2;
  font-family: Arial, sans-serif;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #8fa49a;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(220, 233, 225, 0.18);
}

.auth-form label {
  display: grid;
  gap: 7px;
  color: #bed0c6;
  font-size: 0.9rem;
  font-weight: 800;
  min-width: 0;
}

.auth-form input,
.auth-form select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--text);
  appearance: auto;
  box-sizing: border-box;
}

.auth-form input[type="date"],
.auth-form input[name="register-dob"] {
  min-width: 0;
  min-inline-size: 0;
  max-inline-size: 100%;
  display: block;
  font-size: 16px;
  font-family: inherit;
  inline-size: 100%;
  width: 100%;
  max-width: 100%;
  min-height: 46px;
  height: 46px;
  line-height: 1.2;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  -webkit-appearance: none;
  appearance: none;
  overflow: hidden;
  -webkit-padding-start: 12px;
  -webkit-padding-end: 12px;
}

.auth-form input[type="date"]::-webkit-date-and-time-value {
  text-align: left;
  min-height: 24px;
  line-height: 24px;
}

.auth-form input[type="date"]::-webkit-calendar-picker-indicator {
  margin: 0;
  opacity: 0.85;
}

@supports (-webkit-touch-callout: none) {
  .auth-form input[type="date"],
  .auth-form input[name="register-dob"] {
    height: 46px;
    min-height: 46px;
    max-height: 46px;
    min-inline-size: 0;
    max-inline-size: 100%;
  }
}

.auth-form .button {
  margin-top: 6px;
  border: 0;
}

.forgot-link {
  justify-self: end;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 900;
}

.panel-link {
  justify-self: center;
  background: transparent;
  border: 0;
  color: #bed0c6;
  font-weight: 900;
}
