/* Shared layout for the sign in and registration pages. */
body.auth-page {
  display: block;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

.hero-video-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--bg-dark);
}

.hero-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(14px);
  transform: scale(1.05);
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 20, 0.76);
}

.auth-split-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 44px 20px;
}

.auth-form-side {
  width: min(100%, 440px);
  padding: clamp(22px, 4vw, 34px);
  background: rgba(5, 7, 15, 0.87);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.auth-page-register .auth-form-side {
  width: min(100%, 640px);
}

.auth-page-register form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 16px;
}

.auth-page-register .auth-submit {
  grid-column: 1 / -1;
}

.auth-card {
  width: 100%;
  min-width: 0;
}

.auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--text-high);
  font-family: var(--font-brand);
  font-size: 17px;
  font-weight: 700;
}

.auth-brand img {
  width: 46px;
  height: 46px;
  border: 2px solid var(--cyan);
  border-radius: 50%;
  object-fit: cover;
  background: #000;
}

.auth-card h1 {
  margin-bottom: 4px;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
}

.auth-intro {
  margin-bottom: 22px;
  color: var(--text-muted);
  font-size: 13.5px;
  text-align: center;
}

.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-pure);
  font-size: 13px;
  font-weight: 700;
}

.form-input {
  width: 100%;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: #fff;
  font: inherit;
  font-size: 14px;
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 14px var(--cyan-glow);
  background: rgba(255, 255, 255, 0.08);
}

.pass-wrap {
  position: relative;
}

.pass-wrap .form-input {
  padding-right: 48px;
}

.pass-toggle-btn {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: none;
  border: 0;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 16px;
}

.error-alert {
  margin-bottom: 18px;
  padding: 12px 16px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: var(--radius-sm);
  color: #fca5a5;
  font-size: 13px;
}

.auth-submit {
  margin-top: 8px;
  white-space: normal;
}

.auth-footer {
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
}

.auth-footer p + p {
  margin-top: 6px;
}

.auth-footer a {
  font-weight: 700;
}

.back-home {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
}

@media (max-width: 480px) {
  .auth-split-wrapper {
    padding: 52px 14px;
  }

  .auth-form-side {
    padding: 22px 20px;
  }

  .auth-submit {
    padding-inline: 14px;
  }
}

@media (max-width: 640px) {
  .auth-page-register form {
    display: block;
  }
}
