:root {
  --atlas-bg: #0E1010;
  --atlas-bg-2: #181B1A;
  --atlas-bg-3: #222525;
  --atlas-surface: #000;
  --atlas-surface-highlight: #171a1c;
  --atlas-border: rgba(255, 255, 255, 0.08);
  --atlas-text: #ffffff;
  --atlas-text-muted: #9CA7A6;
  --atlas-text-neutral: #737373;
  --atlas-text-dark: #585F5E;
  --atlas-accent: #26c1ac;
  --atlas-accent-2: #34897F;
  --atlas-accent-3: #33F3D2;
  --atlas-accent-4: #273F3B;
  --atlas-error: #FF5564;
  --atlas-success: #1DB95D;
  --atlas-shadow: 0px 20px 60px rgba(0, 0, 0, 0.45);
  --font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--atlas-bg);
  color: var(--atlas-text);
  font-family: var(--font-family);
  min-height: 100vh;
  overflow-x: hidden;
}

body a {
  color: var(--atlas-accent-3);
  text-decoration: none;
}

body a:hover {
  text-decoration: underline;
}

.atlas-login-body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
}

.atlas-login-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: radial-gradient(circle at 20% 20%, rgba(38, 193, 172, 0.25), transparent 50%),
    radial-gradient(circle at 80% 10%, rgba(51, 243, 210, 0.2), transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(38, 54, 193, 0.15), transparent 50%),
    #010101;
}

.atlas-login-gradient {
  position: absolute;
  width: 50vw;
  height: 50vw;
  filter: blur(120px);
  opacity: 0.5;
}

.atlas-login-gradient--one {
  top: -10vw;
  left: -10vw;
  background: radial-gradient(circle, rgba(51, 243, 210, 0.5), transparent 60%);
}

.atlas-login-gradient--two {
  bottom: -20vw;
  right: -10vw;
  background: radial-gradient(circle, rgba(38, 193, 172, 0.4), transparent 60%);
}

.atlas-login-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Crect width='3' height='3' x='66' y='35' fill='rgba(255,255,255,0.12)'/%3E%3Crect width='2' height='2' x='20' y='80' fill='rgba(255,255,255,0.05)'/%3E%3Crect width='1' height='1' x='5' y='10' fill='rgba(255,255,255,0.07)'/%3E%3Crect width='1' height='1' x='90' y='70' fill='rgba(255,255,255,0.08)'/%3E%3C/svg%3E");
  opacity: 0.3;
}

.atlas-login-stage {
  position: relative;
  z-index: 1;
  min-height: 0;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 54px 12px;
  gap: 24px;
}


.atlas-login-shell {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* New login layout (2 columns, no card/background) */
.atlas-auth-page {
  width: 100%;
  max-width: 1328px;
  padding: 40px 12px;
  display: flex;
  gap: 40px;
  align-items: start;
}

.atlas-auth-left-container {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 40px;
  min-width: 0;
}

.atlas-auth-logo {
  width: 184px;
  height: auto;
  display: block;
  margin-bottom: 12px;
}

.atlas-auth-title-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.atlas-auth-title {
  margin: 0;
  font-size: 32px;
  line-height: 38px;
  font-weight: 500;
  letter-spacing: -1px;
  margin-top: 40px;
}

.atlas-auth-subtitle {
  margin: 0;
  font-size: 16px;
  line-height: 22px;
  font-weight: 400;
  color: var(--atlas-text-muted);
}

.atlas-auth-meta {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.atlas-auth-legal {
  margin: 4px 0 0;
  color: var(--atlas-text-muted);
  font-size: 13px;
  line-height: 1.5;
}

.atlas-auth-meta-label {
  color: var(--atlas-text);
  white-space: nowrap;
  font-size: 16px;
  line-height: 22px;
}

.atlas-auth-meta-label-terms {
  color: var(--atlas-text-muted);
  white-space: nowrap;
  font-size: 14px;
  line-height: 20px;
}

.atlas-auth-button {
  position: relative;
  width: 100%;
  color: var(--atlas-accent);
  padding: 8px 24px;
  border-radius: 4px;
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  border: 1px solid var(--atlas-accent);
  text-decoration: none;
  background: transparent;
  transition: background-color 0.2s ease-in-out;
  cursor: pointer;
  user-select: none;
}

.atlas-auth-button:hover {
  text-decoration: none;
  background-color: var(--atlas-accent-4);
}

.atlas-auth-link-row-left {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-weight: 400;
  font-size: 16px;
  line-height: 22px;
  text-decoration: none;
}

.atlas-auth-link-terms {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 20px;
  color: var(--atlas-accent);
}

.atlas-auth-link-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;

  font-weight: 400;
  font-size: 16px;
  line-height: 22px;
  text-decoration: none;
}

.atlas-auth-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--atlas-accent-3);
}

.atlas-auth-right-container {
  flex: 1 1 0;
  display: flex;
  min-width: 0;
  background-color: var(--atlas-bg-2);
  border-radius: 24px;
}

.atlas-auth-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 0;
  width: 100%;
}

.atlas-auth-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px 24px 24px;
  gap: 4px;
}

.atlas-auth-feature-icon {
  width: 32px;
  height: 32px;
  display: block;
}

.atlas-auth-feature-title {
  color: var(--atlas-text);
  font-size: 14px;
  line-height: 20px;
}

.atlas-auth-feature-description {
  color: var(--atlas-text-muted);
  font-size: 12px;
  line-height: 17px;
}

.atlas-auth-right-contents-login,
.atlas-auth-right-contents-register {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
  padding: 40px 54px;
}

.atlas-auth-right-contents-link {

  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-width: 0;
  padding: 40px 54px;
}

.atlas-auth-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--atlas-text-muted);
  text-decoration: none;
  font-size: 14px;
  line-height: 20px;
}

.atlas-auth-back-button {
  background: transparent;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.atlas-auth-back-button:focus-visible {
  outline: 2px solid rgba(51, 243, 210, 0.3);
  outline-offset: 4px;
  border-radius: 4px;
}

.atlas-auth-back-link:hover {
  color: var(--atlas-text-muted);
  text-decoration: underline;
}

.atlas-auth-back-arrow {
  width: 16px;
  height: 16px;
  display: block;
}

.atlas-auth-link-title {
  margin: 0;
  color: var(--atlas-text);
  font-size: 17px;
  line-height: 22px;
  font-weight: 500;
  letter-spacing: -0.7px;
}

.atlas-auth-right-contents-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.atlas-auth-form {
  width: 100%;
}

.atlas-auth-form-login {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.atlas-auth-form-link {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.atlas-auth-form-register {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.atlas-auth-form-actions {
  display: flex;
}

.atlas-auth-submit-button {
  border: none;
  border-radius: 4px;
  padding: 8px 20px;
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  transition: background-color 0.2s ease;
  cursor: pointer;
  background-color: var(--atlas-accent);
  color: var(--atlas-bg);
  text-transform: none;
  width: 100%;
  user-select: none;
}

.atlas-auth-submit-button:hover {
  background-color: var(--atlas-accent-3);
}

/* Register page: 2-column field layout */
.atlas-auth-form-fields {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.atlas-register-confirm {
  grid-column: 2;
}

@media (max-width: 959px) {
  .atlas-register-confirm {
    grid-column: auto;
  }
}

.atlas-register-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.atlas-register-submit-body {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.atlas-register-submit-icon {
  width: 16px;
  height: 16px;
  display: block;
}

.atlas-auth-divider {
  width: 100%;
  height: 2px;
  background-color: var(--atlas-bg-3);
  border: none;
  margin: 0;
}

.atlas-auth-divider-text {
  font-size: 16px;
  line-height: 22px;
  font-weight: 400;
  color: var(--atlas-text-muted);
}

.atlas-auth-divider-container {
  display: flex;
  align-items: center;
  gap: 32px;
}

.atlas-button__icon img {
  width: 18px;
  height: 18px;
  display: block;
}

.atlas-provider-icon img {
  width: 20px;
  height: 20px;
  display: block;
}

@media (max-width: 959px) {
  .atlas-auth-page {
    flex-direction: column;
    align-items: stretch;
    gap: 40px;
  }

  .atlas-auth-left-container {
    gap: 28px;
  }

  .atlas-auth-right-contents {
    gap: 24px;
  }

  .atlas-auth-logo {
    width: 160px;
    margin-bottom: 0;
  }

  .atlas-auth-title {
    font-size: 28px;
    line-height: 34px;
  }

  .atlas-auth-meta {
    margin-top: 12px;
    gap: 12px;
  }

  .atlas-auth-meta-label {
    white-space: normal;
  }

  .atlas-auth-link-row-left {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .atlas-auth-link-row {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .atlas-password-requirements {
    grid-template-columns: 1fr;
    padding: 16px;
  }
}

.atlas-card--register {
  max-width: 734px;
}

.atlas-card {
  background: linear-gradient(135deg, rgba(17, 19, 21, 0.95), rgba(15, 17, 18, 0.9));
  border: 1px solid var(--atlas-border);
  box-shadow: var(--atlas-shadow);
  border-radius: 26px;
  padding: clamp(22px, 3vw, 34px);
  backdrop-filter: blur(20px);
  width: 100%;
  box-sizing: border-box;
}

.atlas-card__header {
  text-align: left;
  margin-bottom: 20px;
}

.atlas-card hr {
  display: none;
}

.atlas-logo {
  display: block;
  width: clamp(110px, 26vw, 150px);
  height: auto;
  margin-bottom: 12px;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
}

.atlas-card__eyebrow {
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--atlas-accent-3);
  margin-bottom: 6px;
}

.atlas-card__header h1 {
  font-size: clamp(32px, 4vw, 40px);
  margin: 0 0 6px;
}

.atlas-card__subtitle {
  margin: 0;
  color: var(--atlas-text-muted);
  font-size: 15px;
}

.atlas-card .atlas-login-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
  align-items: stretch;
  width: 100%;
}

.atlas-card .atlas-login-panels:has(.atlas-login-panel:only-child) {
  grid-template-columns: 1fr;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

@supports not selector(:has(*)) {
  .atlas-login-panel:only-child {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
}

.atlas-login-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
}

.atlas-login-panel--local .atlas-card__section,
.atlas-login-panel--external .atlas-card__section {
  height: 100%;
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
  flex: 1;
}

.atlas-alert {
  margin-bottom: 24px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 107, 107, 0.3);
  background: rgba(255, 107, 107, 0.08);
  color: var(--atlas-error);
  font-size: 14px;
}

.atlas-alert ul {
  margin: 0;
  padding-left: 20px;
}

.atlas-card__section {
  border: 1px solid var(--atlas-border);
  border-radius: 18px;
  padding: 20px;
  background: var(--atlas-surface-highlight);
}

.atlas-card__section--standalone {
  padding: 18px 22px 22px;
}

.atlas-card__section--form {
  padding-bottom: 32px;
}

.atlas-card__section--form form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.atlas-card__section--form form .row,
.atlas-card__section--form form .form-group,
.atlas-card__section--form form .mb-3,
.atlas-card__section--form form .atlas-form,
.atlas-card__section--form form .atlas-form-field,
.atlas-card__section--form form .atlas-form-actions {
  margin-bottom: 0 !important;
}

.atlas-card__section--form form .mb-3,
.atlas-card__section--form form .atlas-form-field {
  display: flex;
  flex-direction: column;
  position: relative;
  gap: 6px;
}


.atlas-card__section--form form .atlas-form {

  display: flex;
  flex-direction: column;
  position: relative;
  gap: 22px;
}

.atlas-card__section--form form .mb-3:last-child,
.atlas-card__section--form form .form-group:last-child,
.atlas-card__section--form form .atlas-form-actions {
  margin-top: 12px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.atlas-card__section--form form .mb-3:last-child button,
.atlas-card__section--form form .form-group:last-child button {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.atlas-card__section--form form select,
.atlas-card__section--form form textarea {
  margin-top: 6px;
}

.atlas-form-help {
  display: block;
  color: var(--atlas-text-muted);
  font-size: 13px;
  line-height: 1.4;
}

.atlas-password-requirements {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 4px;
  border: 2px solid var(--atlas-bg-3);
  list-style: none;
  padding: 24px;
  margin: 0;
  gap: 8px 0;
}

.password-requirement {
  font-size: 12px;
  line-height: 17px;
  color: var(--atlas-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.password-requirement.is-valid {
  color: var(--atlas-text);
}

.password-requirement .atlas-requirement-example {
  font-size: 11px;
  line-height: 16px;
  color: var(--atlas-text-muted);
}

.password-requirement .atlas-requirement-icon {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  display: inline-block;
  background-color: var(--atlas-error);
  -webkit-mask-image: url("../images/cross.svg");
  mask-image: url("../images/cross.svg");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.password-requirement.is-valid .atlas-requirement-icon {
  background-color: var(--atlas-accent);
  -webkit-mask-image: url("../images/check.svg");
  mask-image: url("../images/check.svg");
}

.atlas-card__section-title {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--atlas-text-muted);
}

.atlas-card__footer {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--atlas-text-muted);
  line-height: 1.6;
}

.atlas-card__footer p {
  margin: 4px 0;
}

.atlas-card__muted {
  font-size: 13px;
}

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

.atlas-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.atlas-login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.atlas-form-field {
  display: flex;
  flex-direction: column;
  position: relative;
  gap: 8px;
}

.atlas-form-field-filled {
  padding-top: 12px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.atlas-form-label {
  font-size: 14px;
  line-height: 20px;
  color: var(--atlas-text);
  display: block;
}

.atlas-form-label--required {
  font-size: 14px;
  line-height: 20px;
  color: var(--atlas-text);
  display: block;
}

.atlas-form-label--required::after {
  content: " *";
  color: var(--atlas-error);
}

.atlas-form-header {
  display: flex;
  justify-content: space-between;
  margin-inline: 12px;
  align-items: center;
}

.atlas-form-input {
  width: 100%;
  border-radius: 4px;
  border: none;
  padding: 12px;
  background-color: var(--atlas-bg-3) !important;
  color: var(--atlas-text);
  font-size: 16px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

/* Link external login: show provider email as bordered, no-fill (disabled) field */
.atlas-form-input:disabled {
  background-color: transparent !important;
  opacity: 1;
}

.atlas-form-input::placeholder {
  color: var(--atlas-text-dark);
  opacity: 1;
  user-select: none;
}

.atlas-form-input:focus {
  border-color: var(--atlas-accent);
  background-color: var(--atlas-bg-3) !important;
}

.atlas-form-error {
  position: absolute;
  top: calc(100% + 2px);
  left: 4px;
  color: var(--atlas-error) !important;
  font-size: 11px;
  line-height: 16px;
}

.atlas-form-error:empty {
  display: none;
}

.atlas-form-password {
  position: relative;
  display: flex;
  align-items: stretch;
}

.atlas-form-password-input {
  padding-right: 56px;
}

.atlas-form-password-toggle {
  position: absolute;
  right: 10px;
  top: 0;
  bottom: 0;
  margin: auto;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--atlas-text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.atlas-form-password-toggle:hover {
  color: var(--atlas-accent);
  background: rgba(255, 255, 255, 0.06);
}

.atlas-form-password-toggle:focus-visible {
  outline: 2px solid rgba(51, 243, 210, 0.3);
  outline-offset: 2px;
}

.atlas-form-password-icon {
  width: 16px;
  height: 16px;
  display: block;
}


.atlas-form-password-toggle:hover .atlas-form-password-icon {
  opacity: 1;
}

.atlas-form-password-toggle .atlas-form-icon-eye-off {
  display: none;
}

.atlas-form-password-toggle.is-revealed .atlas-form-icon-eye {
  display: none;
}

.atlas-form-password-toggle.is-revealed .atlas-form-icon-eye-off {
  display: block;
}

.atlas-form-remember {
  display: flex;
  align-items: center;
  gap: 6px;
}

.atlas-form-checkbox {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid var(--atlas-accent);
  background: var(--atlas-text);
  cursor: pointer;
  position: relative;
}

.atlas-form-checkbox:checked {
  background: var(--atlas-accent);
  border-color: var(--atlas-accent);
}

.atlas-form-checkbox:checked::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 14 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 5L5 9L13 1.5' stroke='white' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.atlas-form-checkbox-label {
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: var(--atlas-text);
  cursor: pointer;
  user-select: none;
}

.atlas-login-button {
  display: flex;
}

.atlas-login-submit {
  border: none;
  border-radius: 4px;
  padding: 8px 20px;
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  transition: background-color 0.2s ease;
  cursor: pointer;
  background-color: var(--atlas-accent);
  color: var(--atlas-bg);
  text-transform: none;
  width: 100%;
  user-select: none;
}

.atlas-login-submit:hover {
  background-color: var(--atlas-accent-3);
}


.atlas-label-link {
  color: var(--atlas-text);
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  text-decoration: none !important;
  cursor: pointer;
  transition: color 0.2s ease;
}


.atlas-label-link:hover {
  color: var(--atlas-accent);
}


.atlas-login-links {
  padding-left: 0;
  margin: 8px 0 0;
  list-style: none;
  display: flex;
  gap: 6px;
}

.atlas-login-links li a,
.atlas-login-link {
  font-size: 14px;
  color: var(--atlas-text-muted);
}

/* Prevent browser autofill from forcing a light background (Chrome/Edge/WebKit). */
.atlas-form-input:-webkit-autofill,
.atlas-form-input:-webkit-autofill:hover,
.atlas-form-input:-webkit-autofill:focus,
.atlas-form-input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--atlas-text) !important;
  caret-color: var(--atlas-text);
  box-shadow: 0 0 0 1000px var(--atlas-bg-3) inset !important;
  transition: background-color 9999s ease-out 0s;
}

.atlas-login-links li a:hover,
.atlas-login-link:hover {
  color: var(--atlas-accent-3);
  text-decoration: underline;
}

.atlas-login-meta {
  display: flex;
  justify-content: flex-start;
}

.form-label {
  font-size: 14px;
  color: var(--atlas-text);
  margin-bottom: 6px;
  margin-left: 4px;
  display: block;
}

.form-control {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--atlas-surface-highlight);
  padding: 14px 16px;
  color: var(--atlas-text);
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  border-color: var(--atlas-accent);
  box-shadow: 0 0 0 2px rgba(38, 193, 172, 0.25);
}

.input-group {
  position: relative;
  display: flex;
}

.input-group .form-control {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-check-input {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  cursor: pointer;
  position: relative;
}

.form-check-input:checked {
  background: var(--atlas-accent);
  border-color: var(--atlas-accent);
}

.form-check-input:checked::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 14 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 5L5 9L13 1.5' stroke='white' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.atlas-button,
.auth-form button[type="submit"] {
  border: none;
  border-radius: 14px;
  padding: 15px 20px;
  font-weight: 600;
  font-size: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  background: linear-gradient(90deg, var(--atlas-accent), var(--atlas-accent-3));
  color: #04110f;
  text-transform: none;
  width: 100%;
}

.atlas-button:hover,
.auth-form button[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(38, 193, 172, 0.35);
}

.atlas-card__section--form form button[type="submit"] {
  border: none;
  border-radius: 14px;
  padding: 15px 28px;
  font-weight: 600;
  font-size: 16px;
  background: linear-gradient(90deg, var(--atlas-accent), var(--atlas-accent-3));
  color: #04110f;
  text-transform: none;
  min-width: 180px;
  width: 100%;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.atlas-card__section--form form button[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(38, 193, 172, 0.4);
}

.atlas-register-layout {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.atlas-register-aside {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 16px;
  flex: 1;
  min-width: 0;
}

.atlas-register-form {
  flex: 1;
}

.auth-form ul {
  padding-left: 0;
  margin: 8px 0 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-form ul li a {
  font-size: 14px;
  color: var(--atlas-text-muted);
}

.atlas-text-danger,
.text-danger,
.validation-summary-errors {
  position: absolute;
  top: calc(100% + 2px);
  left: 4px;
  color: var(--atlas-error) !important;
  font-size: 13px;
}

/* Don't show empty validation placeholders */
.atlas-text-danger:empty,
span.field-validation-valid {
  display: none;
}

.atlas-external-login {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.atlas-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--atlas-text);
  font-weight: 600;
  padding: 14px 20px;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.atlas-button:hover {
  border-color: rgba(51, 243, 210, 0.6);
  background: rgba(51, 243, 210, 0.08);
  transform: translateY(-1px);
}

.input-group .btn {
  width: auto;
  min-width: 48px;
  border-radius: 0 14px 14px 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: none;
  background: rgba(255, 255, 255, 0.05);
  color: var(--atlas-text);
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.input-group .btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(51, 243, 210, 0.45);
  transform: none;
  box-shadow: none;
}

.input-group .btn .icon {
  color: var(--atlas-text);
  font-size: 16px;
}

/* Password toggle button styles */
.password-input-wrapper {
  position: relative;
  width: 100%;
  display: block;
}

.password-input-wrapper .form-control {
  position: relative;
}

.password-toggle-btn {
  position: absolute;
  right: 0.75rem;
  top: 0;
  bottom: 0;
  margin: auto;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--atlas-text-muted);
  transition: color 0.2s ease;
  z-index: 10;
  outline: none;
  width: 32px;
  height: 32px;
  line-height: 1;
}


.password-toggle-btn:focus:not(:disabled) {
  color: var(--atlas-accent);
  outline: 2px solid rgba(51, 243, 210, 0.3);
  outline-offset: 2px;
  border-radius: 4px;
}

.password-toggle-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.password-toggle-btn:hover:not(:disabled) {
  color: var(--atlas-accent);
}

.password-toggle-icon {
  width: 20px;
  height: 20px;
  display: block;
  stroke: currentColor;
  pointer-events: none;
}

/* Ensure password input has padding on the right for the toggle button */
.password-input-wrapper input[type="password"],
.password-input-wrapper input[type="text"],
.password-input-wrapper .form-control {
  padding-right: 3rem !important;
  width: 100%;
  box-sizing: border-box;
}

.atlas-button--ghost {
  background: transparent;
}

.atlas-button__body {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.atlas-provider-icon {
  width: 28px;
  height: 28px;
  position: absolute;
  left: 6px;
  top: 6px;
  border-radius: 6px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.25);
}

.atlas-provider-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.atlas-button__icon {
  font-size: 19px;
  color: var(--atlas-accent-3);
}

@media (max-width: 540px) {
  .atlas-card {
    padding: 24px;
    border-radius: 22px;
  }

  .atlas-card__section {
    padding: 20px;
    border-radius: 16px;
  }
}

@media (max-width: 768px) {
  .atlas-card .atlas-login-panels {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .atlas-login-stage {
    align-items: flex-start;
    padding: 20px 16px 40px;
  }

  .atlas-login-shell {
    width: 100%;
  }

  .atlas-card__header {
    margin-bottom: 14px;
  }

  .atlas-card__footer {
    font-size: 13px;
  }
}

@media (max-height: 720px) {
  .atlas-login-stage {
    align-items: flex-start;
    padding-top: 32px;
    padding-bottom: 32px;
  }
}

/* Hide username field in registration form - username will be set to email automatically */
.atlas-card__section--form form .mb-3:has(label[for="UserName"]),
.atlas-card__section--form form .mb-3:has(input[name="UserName"]:not([type="hidden"])),
.atlas-card__section--form form label[for="UserName"],
.atlas-card__section--form form input[name="UserName"]:not([type="hidden"]) {
  display: none !important;
}

/* Also hide the parent container if it contains the username field */
.atlas-card__section--form form .mb-3:has(> label[for="UserName"]) {
  display: none !important;
}

/* Login footer (widget-rendered)
   Your template:
   .widget-container > .widget.widget-footer > .widget-body
   Inside widget-body:
   .field-name-footer-image (left 25%), .flow (left 25%), .field-name-footer-disclaimer (right 50%)

   The outer wrapper class may or may not exist. We scope to `.atlas-login-body` so we don’t affect
   widgets on non-auth pages, and we also support `.atlas-login-footer` if it’s present. */

/* Footer wrapper: full width + border + padding */
.atlas-login-body .widget-container,
.atlas-login-footer {
  width: 100%;
  margin: 0 auto;
  margin-top: auto;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  background: transparent;
  border-top: 1px solid var(--atlas-border);
}

/* Inner content max width */
.atlas-login-body .widget-container>.widget.widget-footer,
.atlas-login-footer>.widget-container>.widget.widget-footer {
  width: 100%;
  max-width: 1328px;
  padding: 32px 12px;
}

/* Widget body: inner vertical padding */
.atlas-login-body .widget.widget-footer .widget-body,
.atlas-login-footer .widget.widget-footer .widget-body,
.atlas-login-body .widget-body:has(.footer-branding):has(.flow):has(.field-name-footer-disclaimer),
.atlas-login-footer .widget-body:has(.footer-branding):has(.flow):has(.field-name-footer-disclaimer) {
  width: 100%;
  padding-block: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  grid-template-areas: "footer-branding footer-links footer-disclaimer";
  gap: 24px;
  align-items: start;
  color: var(--atlas-text-muted);
}

.atlas-login-body .widget.widget-footer .field,
.atlas-login-footer .widget.widget-footer .field {
  margin: 0;
  font-size: 12px;
  line-height: 17px;
  font-weight: 400;
  color: var(--atlas-text-muted);
}

.atlas-login-body .widget.widget-footer a,
.atlas-login-footer .widget.widget-footer a {
  color: var(--atlas-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.atlas-login-body .widget.widget-footer a:hover,
.atlas-login-footer .widget.widget-footer a:hover {
  color: var(--atlas-accent-3);
  text-decoration: none;
}

/* Default layout: 25% / 25% / 50% */
/* Branding column: "Brought to you by" (16px high) above the logo with a 12px gap */
.atlas-login-body .widget.widget-footer .footer-branding,
.atlas-login-footer .widget.widget-footer .footer-branding,
.atlas-login-body .footer-branding,
.atlas-login-footer .footer-branding {
  grid-area: footer-branding;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-self: start;
  align-self: start;
}

.atlas-login-body .widget.widget-footer .field-name-footer-image-text,
.atlas-login-footer .widget.widget-footer .field-name-footer-image-text {
  display: block;
  height: 16px;
  font-size: 11px;
  line-height: 16px;
  margin: 0;
  align-self: start;
  white-space: nowrap;
}

.atlas-login-body .widget.widget-footer .field-name-footer-image,
.atlas-login-footer .widget.widget-footer .field-name-footer-image {
  justify-self: start;
  align-self: start;
}

.atlas-login-body .widget.widget-footer .flow,
.atlas-login-footer .widget.widget-footer .flow {
  grid-area: footer-links;
  justify-self: start;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}

.atlas-login-body .widget.widget-footer .field-name-footer-disclaimer,
.atlas-login-footer .widget.widget-footer .field-name-footer-disclaimer {
  grid-area: footer-disclaimer;
  justify-self: start;
  align-self: start;
}

/* Under 960px: top row is 50/50 (image + links), disclaimer spans full width below */
@media (max-width: 959px) {

  .atlas-login-body .widget.widget-footer .widget-body,
  .atlas-login-footer .widget.widget-footer .widget-body,
  .atlas-login-body .widget-body:has(.footer-branding):has(.flow):has(.field-name-footer-disclaimer),
  .atlas-login-footer .widget-body:has(.footer-branding):has(.flow):has(.field-name-footer-disclaimer) {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "footer-branding footer-links"
      "footer-disclaimer footer-disclaimer";
    gap: 36px 16px;
    padding-block: 36px;
  }
}

/* Footer image/logo */
.atlas-login-body .widget.widget-footer .field-name-footer-image,
.atlas-login-footer .field-name-footer-image {
  margin: 0;
  display: block;
}

.atlas-login-body .widget.widget-footer .field-name-footer-image .name,
.atlas-login-footer .field-name-footer-image .name {
  display: none;
}

.atlas-login-body .widget.widget-footer .field-name-footer-image a,
.atlas-login-footer .field-name-footer-image a {
  display: inline-block;
  text-indent: -9999px;
  overflow: hidden;
  width: auto;
  height: auto;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: left center;
  text-decoration: none;
}

/* Footer logo image */
.atlas-login-footer .field-name-footer-image img,
.atlas-login-footer .field-name-footer-image .footer-logo {
  display: block;
  height: auto;
  max-width: 150px;
  width: auto;
}

.atlas-login-body .widget.widget-footer .field-name-footer-image img,
.atlas-login-body .widget.widget-footer .field-name-footer-image .footer-logo {
  display: block;
  height: auto;
  max-width: 150px;
  width: auto;
}

/* Light theme: invert logo if needed */
[data-theme="light"] .atlas-login-footer .field-name-footer-image img,
[data-theme="light"] .atlas-login-footer .footer-logo {
  filter: invert(1);
}

[data-theme="light"] .atlas-login-body .widget.widget-footer .field-name-footer-image img,
[data-theme="light"] .atlas-login-body .widget.widget-footer .footer-logo {
  filter: invert(1);
}

/* (Keep any additional widget-footer-specific image rules out of global scope.) */

/* Footer links section */
.atlas-login-body .widget.widget-footer .flow,
.atlas-login-footer .flow {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}

.atlas-login-body .widget.widget-footer .content-footer-link-item,
.atlas-login-footer .content-footer-link-item {
  display: block;
}

.atlas-login-body .widget.widget-footer .field-name-footer-link-item-link a,
.atlas-login-footer .field-name-footer-link-item-link a {
  color: var(--atlas-text-muted);
  text-decoration: none;
  font-size: inherit;
  transition: color 0.2s ease;
  display: inline-block;
}

.atlas-login-body .widget.widget-footer .field-name-footer-link-item-link a:hover,
.atlas-login-footer .field-name-footer-link-item-link a:hover {
  color: var(--atlas-accent-3);
  text-decoration: none;
}

/* Footer disclaimer */
.atlas-login-body .widget.widget-footer .field-name-footer-disclaimer,
.atlas-login-footer .field-name-footer-disclaimer {
  font-size: 11px;
  line-height: 16px;
  font-weight: 500;
  color: var(--atlas-text-muted);
  margin: 0;
}

.footer-section {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 0;
}

.footer-section__container {
  display: flex;
  width: 100%;
  max-width: 1200px;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  font-size: 12px;
  line-height: 17px;
  color: var(--atlas-text-muted);
  gap: 1rem;
}

.footer-section__info {
  width: 100%;
  display: flex;
  flex-direction: row;
  gap: 8px;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-section__copyright {
  text-align: left;
  color: var(--atlas-text-muted);
}

.footer-section__terms {
  text-align: left;
  color: var(--atlas-text-muted);
}

.footer-section__info a {
  color: var(--atlas-accent);
  text-decoration: none;
}

.footer-section__info a:hover {
  text-decoration: underline;
}

.footer-section__logos {
  display: flex;
  align-items: center;
  max-width: 182px;
  height: 100%;
  gap: 16px;
  justify-content: flex-end;
  margin-left: auto;
}

.footer-section__logo {
  display: block;
  align-items: flex-end;
}

.footer-section__logo img {
  display: block;
  max-height: 32px;
  width: auto;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.footer-section__logo:hover img {
  opacity: 1;
}

.footer-section__logo a {
  display: block;
  cursor: pointer;
}

/* Mobile responsive footer */
@media (max-width: 768px) {
  .footer-section__container {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 1rem;
    font-size: 11px;
    line-height: 15px;
  }

  .footer-section__info {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .footer-section__logos {
    width: 100%;
    max-width: 178px;
    margin-left: 0;
    justify-content: flex-start;
    gap: 12px;
  }

  .footer-section__logo img {
    max-height: 28px;
  }
}