main.site-container {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body.theme-dark {
  --auth-card-bg: rgba(20, 20, 24, 0.78);
  --auth-card-border: rgba(255, 255, 255, 0.10);
  --auth-card-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);

  --auth-text: #ffffff;
  --auth-muted: rgba(255, 255, 255, 0.78);

  --auth-input-bg: rgba(255, 255, 255, 0.06);
  --auth-input-border: rgba(255, 255, 255, 0.14);
  --auth-input-focus: rgba(255, 255, 255, 0.24);

  --auth-btn-bg: #ffffff;
  --auth-btn-text: #111111;
  --auth-btn-hover: #ececec;

  --auth-link: #ffffff;
  --auth-link-hover: rgba(255, 255, 255, 0.82);

  --auth-error-bg: rgba(185, 28, 28, 0.18);
  --auth-error-border: rgba(248, 113, 113, 0.35);
  --auth-error-text: #fecaca;
}

body.theme-light {
  --auth-card-bg: rgba(255, 255, 255, 0.82);
  --auth-card-border: rgba(0, 0, 0, 0.10);
  --auth-card-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);

  --auth-text: #111111;
  --auth-muted: rgba(0, 0, 0, 0.66);

  --auth-input-bg: rgba(255, 255, 255, 0.88);
  --auth-input-border: rgba(0, 0, 0, 0.14);
  --auth-input-focus: rgba(0, 0, 0, 0.24);

  --auth-btn-bg: #111111;
  --auth-btn-text: #ffffff;
  --auth-btn-hover: #2a2a2a;

  --auth-link: #111111;
  --auth-link-hover: rgba(0, 0, 0, 0.72);

  --auth-error-bg: rgba(239, 68, 68, 0.10);
  --auth-error-border: rgba(185, 28, 28, 0.22);
  --auth-error-text: #991b1b;
}

.auth-bg {
  position: relative;
  min-height: 100vh;
  background-color: #0b0b0b;
  overflow: hidden;
}

.auth-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

.auth-bg-light {
  display: none;
}

.auth-bg-dark {
  display: none;
}

body.theme-light .auth-bg-light {
  display: block;
}

body.theme-dark .auth-bg-dark {
  display: block;
}

.auth-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  box-sizing: border-box;
}

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  box-sizing: border-box;
}

.auth-card {
  width: 100%;
  max-width: 520px;
  padding: 28px;
  border-radius: 24px;
  background: var(--auth-card-bg);
  border: 1px solid var(--auth-card-border);
  box-shadow: var(--auth-card-shadow);
  color: var(--auth-text);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-sizing: border-box;
}

.auth-top-link {
  margin-bottom: 10px;
}

.auth-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--auth-link);
  border: 1px solid var(--auth-card-border);
  background: rgba(255, 255, 255, 0.08);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

body.theme-light .auth-back-link {
  background: rgba(255, 255, 255, 0.70);
}

.auth-back-link:hover {
  color: var(--auth-link-hover);
}

.auth-header {
  margin-bottom: 20px;
}

.auth-header h1 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  line-height: 1.1;
}

.auth-subtitle {
  margin: 0;
  color: var(--auth-muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.auth-alert {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 0.95rem;
  line-height: 1.45;
}

.auth-alert-error {
  background: var(--auth-error-bg);
  border: 1px solid var(--auth-error-border);
  color: var(--auth-error-text);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-field label {
  font-size: 0.94rem;
  font-weight: 700;
}

.auth-field input[type="email"],
.auth-field input[type="password"],
.auth-field input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--auth-input-border);
  background: var(--auth-input-bg);
  color: var(--auth-text);
  font-size: 0.98rem;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.auth-field input[type="email"]:focus,
.auth-field input[type="password"]:focus,
.auth-field input[type="text"]:focus {
  border-color: var(--auth-input-focus);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.auth-field input:focus {
  border-color: var(--auth-input-focus);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.auth-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--auth-text);
}

.auth-checkbox input {
  margin-top: 3px;
  flex-shrink: 0;
}

.auth-help-text {
  margin-top: -8px;
  color: var(--auth-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.auth-submit-btn {
  margin-top: 4px;
  padding: 13px 18px;
  border: none;
  border-radius: 14px;
  background: var(--auth-btn-bg);
  color: var(--auth-btn-text);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.08s ease;
}

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

.auth-submit-btn:active {
  transform: translateY(1px);
}

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

.auth-footer a {
  color: var(--auth-link);
  font-weight: 700;
  text-decoration: none;
}

.auth-footer a:hover {
  color: var(--auth-link-hover);
}

@media (max-width: 640px) {
  .auth-card {
    padding: 22px 16px;
    border-radius: 20px;
  }

  .auth-page {
    padding: 20px 12px;
  }
}
/* =========================
   Auth legal links
   ========================= */

.auth-legal {
  margin-top: 14px;

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;

  font-size: 0.82rem;
  color: var(--auth-muted);
}

.auth-legal a {
  color: var(--auth-muted);
  text-decoration: none;

  transition: color 0.2s ease;
}

.auth-legal a:hover {
  color: var(--auth-link);
}

.auth-legal span {
  opacity: 0.6;
}

.auth-legal-note {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--auth-muted);
  text-align: center;
}

.auth-inline-links {
    margin-top: -4px;
    text-align: right;
    font-size: 0.9rem;
}

.auth-inline-links a {
    color: var(--auth-link);
    text-decoration: none;
    font-weight: 600;
}

.auth-inline-links a:hover {
    color: var(--auth-link-hover);
}

.auth-secondary-box {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--auth-card-border);
    background: rgba(255, 255, 255, 0.05);
}

body.theme-light .auth-secondary-box {
    background: rgba(0, 0, 0, 0.03);
}

.auth-secondary-title {
    margin-bottom: 6px;
    font-size: 0.96rem;
    font-weight: 800;
    color: var(--auth-text);
}

.auth-secondary-text {
    margin: 0 0 12px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--auth-muted);
}

.auth-secondary-form {
    margin: 0;
}

.auth-secondary-btn {
    padding: 10px 14px;
    border: 1px solid var(--auth-input-border);
    border-radius: 12px;
    background: var(--auth-input-bg);
    color: var(--auth-text);
    font-size: 0.94rem;
    font-weight: 700;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.08s ease;
}

.auth-secondary-btn:hover {
    background: rgba(255, 255, 255, 0.10);
}

body.theme-light .auth-secondary-btn:hover {
    background: rgba(0, 0, 0, 0.06);
}

.auth-secondary-btn:active {
    transform: translateY(1px);
}

.auth-info-box {
    margin-bottom: 18px;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid var(--auth-card-border);
    background: rgba(255, 255, 255, 0.06);
}

body.theme-light .auth-info-box {
    background: rgba(0, 0, 0, 0.035);
}

.auth-info-title {
    margin-bottom: 8px;
    font-size: 1rem;
    font-weight: 800;
    color: var(--auth-text);
}

.auth-info-text {
    margin: 0 0 10px;
    font-size: 0.94rem;
    line-height: 1.55;
    color: var(--auth-muted);
}

.auth-info-text:last-child {
    margin-bottom: 0;
}

.auth-password-toggle {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.auth-password-toggle-input {
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
}

.auth-password-toggle-text {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  color: var(--auth-text);
}

.auth-password-row{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  max-width: max-content;
  margin-top: -6px;
}

.auth-password-checkbox{
  width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: 0 0 auto;
  accent-color: initial;
}

.auth-password-label{
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  color: var(--auth-text);
}