/* Aevro authentication experience.
   Keep the existing auth/vault DOM and JS contracts stable; this layer owns presentation,
   motion, security-state feedback, and the visual handoff from identity -> vault -> app. */

.auth-screen.auth-screen,
.vault-screen.vault-screen {
  --auth-motion-fast: 160ms;
  --auth-motion-medium: 360ms;
  --auth-motion-slow: 620ms;
  --auth-ease-out: cubic-bezier(.2, .72, .2, 1);
  --auth-ease-spring: cubic-bezier(.16, 1, .3, 1);
}

.auth-screen.auth-screen {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(27rem, 0.92fr);
  place-items: stretch;
  overflow: hidden;
  padding: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(37, 99, 255, 0.24), transparent 30rem),
    radial-gradient(circle at 78% 86%, rgba(34, 211, 238, 0.08), transparent 28rem),
    linear-gradient(145deg, var(--auth-page-gradient-from), var(--auth-page-gradient-to));
}

.auth-screen.auth-screen::before {
  content: "";
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  border-right: 1px solid color-mix(in srgb, var(--auth-panel-border) 54%, transparent);
  background:
    linear-gradient(180deg, transparent 48%, color-mix(in srgb, var(--auth-bg) 76%, transparent) 100%),
    radial-gradient(circle at 49% 38%, rgba(37, 99, 255, 0.16), transparent 18rem),
    var(--auth-mascot-image) 54% 58% / min(35rem, 70%) auto no-repeat,
    var(--auth-hero-background-image) center / cover no-repeat;
  filter: saturate(0.94) contrast(1.02);
  transform: scale(1.015);
  animation: aevro-auth-scene-in var(--auth-motion-slow) var(--auth-ease-out) both;
}

/* Deliberately no marketing copy at the bottom of the login scene. The security
   flow is the focal point; the visual side remains atmospheric only. */
.auth-screen.auth-screen::after {
  content: none;
}

.auth-screen.auth-screen .auth-panel.auth-panel {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  justify-self: center;
  width: min(30rem, calc(100% - 3rem));
  display: grid;
  gap: 0.9rem;
  margin: 0;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  border: 1px solid color-mix(in srgb, var(--auth-panel-border) 82%, transparent);
  border-radius: 1.55rem;
  background: color-mix(in srgb, var(--auth-panel-bg) 90%, transparent);
  box-shadow:
    0 2rem 7rem rgba(0, 0, 0, 0.32),
    inset 0 1px rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(30px) saturate(118%);
  color: var(--auth-text);
  animation: aevro-auth-card-in 520ms var(--auth-ease-spring) both;
}

.auth-screen.auth-screen .auth-panel.auth-panel::before {
  content: "Welcome back";
  order: 2;
  margin-top: 0.22rem;
  color: var(--auth-text);
  font-size: clamp(1.8rem, 4vw, 2.35rem);
  font-weight: 790;
  letter-spacing: -0.045em;
  line-height: 1;
}

.auth-screen.auth-screen .auth-panel.auth-panel::after {
  content: "Authenticate your account, then unlock your encrypted vault.";
  order: 3;
  margin-top: -0.42rem;
  color: var(--auth-secondary);
  font-size: 0.84rem;
  font-weight: 540;
  line-height: 1.45;
}

.auth-screen.auth-screen .auth-brand.auth-brand {
  order: 1;
  display: flex;
  grid-template-columns: none;
  justify-content: flex-start;
  justify-items: initial;
  align-items: center;
  gap: 0.72rem;
  text-align: left;
}

.auth-screen.auth-screen .auth-brand.auth-brand::after {
  content: "Aevro\A Secure access";
  display: block;
  color: var(--auth-text);
  font-size: 0.96rem;
  font-weight: 810;
  letter-spacing: -0.02em;
  line-height: 1.18;
  white-space: pre-line;
}

.auth-screen.auth-screen .auth-brand.auth-brand .aevro-logo-mark {
  width: 2.65rem;
  height: 2.65rem;
  color: var(--aevro-blue);
  filter: drop-shadow(0 0.3rem 1rem rgba(37, 99, 255, 0.2));
}

/* Session/status feedback is intentionally active rather than passive text.
   The same indicator carries WebAuthn waiting/enrollment states. */
.auth-screen.auth-screen .auth-status.auth-status {
  order: 5;
  position: relative;
  min-height: 0;
  margin: 0;
  padding: 0.68rem 0.78rem 0.68rem 2.55rem;
  border: 1px solid color-mix(in srgb, var(--auth-input-border) 70%, transparent);
  border-radius: 0.78rem;
  overflow: hidden;
  background: color-mix(in srgb, var(--auth-input-bg) 74%, transparent);
  color: var(--auth-secondary);
  font-size: 0.79rem;
  font-weight: 630;
  line-height: 1.4;
  text-align: left;
  transition:
    border-color var(--auth-motion-fast) ease,
    background var(--auth-motion-fast) ease,
    color var(--auth-motion-fast) ease,
    opacity var(--auth-motion-fast) ease;
}

.auth-screen.auth-screen .auth-status.auth-status::before {
  content: "i";
  position: absolute;
  left: 0.86rem;
  top: 50%;
  width: 0.9rem;
  height: 0.9rem;
  margin-top: -0.45rem;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--aevro-blue) 34%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, var(--aevro-blue) 9%, transparent);
  color: var(--aevro-blue);
  font-size: 0.62rem;
  font-weight: 850;
  line-height: 1;
  animation: none;
}

.auth-screen.auth-screen .auth-status.auth-status::after {
  content: "";
  display: none;
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.045) 48%, transparent 76%);
  transform: translateX(-110%);
}

.auth-screen.auth-screen .auth-status.auth-status.is-loading::before {
  content: "";
  display: block;
  border: 2px solid color-mix(in srgb, var(--aevro-blue) 28%, transparent);
  border-top-color: var(--aevro-blue);
  background: transparent;
  color: transparent;
  animation: aevro-auth-spin 760ms linear infinite;
}

.auth-screen.auth-screen .auth-status.auth-status.is-loading::after {
  display: block;
  animation: aevro-auth-status-sheen 1.8s ease-in-out infinite;
}

.auth-screen.auth-screen .auth-status.auth-status:empty {
  display: none;
}

.auth-screen.auth-screen .auth-status.auth-status[data-tone="danger"] {
  border-color: color-mix(in srgb, var(--danger) 44%, var(--auth-input-border));
  background: color-mix(in srgb, var(--danger) 8%, var(--auth-input-bg));
  color: var(--danger);
}

.auth-screen.auth-screen .auth-status.auth-status[data-tone="danger"]::before {
  content: "!";
  display: grid;
  place-items: center;
  border: 0;
  background: color-mix(in srgb, var(--danger) 14%, transparent);
  color: var(--danger);
  font-size: 0.68rem;
  font-weight: 900;
  animation: none;
}

.auth-screen.auth-screen .auth-status.auth-status[data-tone="danger"]::after {
  display: none;
}

.auth-screen.auth-screen .auth-step.auth-step {
  order: 4;
  justify-self: start;
  margin: -0.08rem 0 0;
  color: var(--auth-muted);
  font-size: 0;
  font-weight: 790;
  letter-spacing: 0.085em;
  text-align: left;
  text-transform: uppercase;
}

.auth-screen.auth-screen .auth-step.auth-step::after {
  content: "Identity verification";
  font-size: 0.68rem;
}

.auth-screen.auth-screen .auth-panel:has(#auth-password-row:not([hidden])) .auth-step.auth-step::after {
  content: "Password · passkey two-step verification";
}

.auth-screen.auth-screen #auth-passkey-button {
  order: 6;
}

.auth-screen.auth-screen .auth-social-section {
  order: 7;
  display: grid;
  gap: 0.72rem;
}

.auth-screen.auth-screen .oauth-buttons.oauth-buttons {
  order: 1;
  display: grid;
  gap: 0.64rem;
}

.auth-screen.auth-screen .auth-divider.auth-divider {
  order: 2;
  margin: 0.08rem 0 0;
  color: var(--auth-muted);
  font-size: 0.7rem;
  font-weight: 700;
}

.auth-screen.auth-screen .auth-divider.auth-divider span {
  font-size: 0;
}

.auth-screen.auth-screen .auth-divider.auth-divider span::after {
  content: "or use another sign-in method";
  font-size: 0.7rem;
}

.auth-screen.auth-screen .auth-social-section:not(:has(.oauth-button[data-auth-configured="true"])) {
  display: none;
}

.auth-screen.auth-screen .oauth-button[data-auth-configured="false"] {
  display: none;
}

.auth-screen.auth-screen .oauth-buttons .oauth-button[data-auth-provider="google"] {
  order: -10;
}

.auth-screen.auth-screen .oauth-button.oauth-button {
  min-height: 3.35rem;
  border: 1px solid var(--auth-provider-border);
  border-radius: 0.86rem;
  background: var(--auth-provider-bg);
  color: var(--auth-text);
  box-shadow: none;
  font-size: 0.91rem;
  font-weight: 720;
  transition:
    transform var(--auth-motion-fast) var(--auth-ease-out),
    border-color var(--auth-motion-fast) ease,
    background var(--auth-motion-fast) ease;
}

.auth-screen.auth-screen .oauth-button.oauth-button:hover {
  border-color: color-mix(in srgb, var(--aevro-blue) 38%, var(--auth-provider-border));
  background: var(--auth-provider-hover);
  transform: translateY(-1px);
}

.auth-screen.auth-screen .oauth-button[data-auth-provider="google"] {
  border-color: color-mix(in srgb, var(--aevro-blue) 28%, var(--auth-provider-border));
}

.auth-screen.auth-screen .oauth-button-copy.oauth-button-copy {
  display: block;
}

.auth-screen.auth-screen .provider-mark.provider-mark {
  left: 1rem;
}

.auth-screen.auth-screen .auth-email-form.auth-email-form {
  order: 8;
  display: grid;
  gap: 0.7rem;
}

.auth-screen.auth-screen .auth-input-row input {
  min-height: 3.35rem;
  border: 1px solid var(--auth-input-border);
  border-radius: 0.86rem;
  background: var(--auth-input-bg);
  color: var(--auth-text);
  padding-left: 3rem;
  box-shadow: none;
  font-size: 0.91rem;
  transition:
    border-color var(--auth-motion-fast) ease,
    box-shadow var(--auth-motion-fast) ease,
    background var(--auth-motion-fast) ease;
}

.auth-screen.auth-screen .auth-input-row input:focus {
  border-color: color-mix(in srgb, var(--aevro-blue) 62%, var(--auth-input-border));
  box-shadow: 0 0 0 3px rgba(37, 99, 255, 0.12);
}

.auth-screen.auth-screen .auth-input-row > svg {
  left: 1rem;
  width: 1.06rem;
  height: 1.06rem;
}

.auth-screen.auth-screen .auth-wide.auth-wide,
.auth-screen.auth-screen .primary-button,
.auth-screen.auth-screen .secondary-button,
.auth-screen.auth-screen .ghost-button {
  min-height: 3.35rem;
  border-radius: 0.86rem;
}

.auth-screen.auth-screen .primary-button.primary-button {
  border: 0;
  background: var(--auth-button-bg);
  color: var(--auth-button-text);
  box-shadow: 0 0.82rem 2rem rgba(37, 99, 255, 0.2);
  font-weight: 780;
  transition:
    transform var(--auth-motion-fast) var(--auth-ease-out),
    box-shadow var(--auth-motion-fast) ease,
    background var(--auth-motion-fast) ease;
}

.auth-screen.auth-screen .primary-button.primary-button:hover {
  background: var(--auth-button-hover);
  transform: translateY(-1px);
  box-shadow: 0 0.95rem 2.3rem rgba(37, 99, 255, 0.24);
}

.auth-screen.auth-screen .auth-form-actions.auth-form-actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.65rem;
}

.auth-screen.auth-screen #auth-back-button[hidden] + #auth-submit-button {
  grid-column: 1 / -1;
}

.auth-screen.auth-screen #auth-back-button:not([hidden]) {
  min-width: 5.75rem;
  border: 1px solid var(--auth-input-border);
  color: var(--auth-secondary);
}

/* Passkeys are the preferred sign-in path. Face ID / Touch ID / Windows Hello are
   invoked by the platform as the local user-verification mechanism for WebAuthn. */
.auth-screen.auth-screen .auth-passkey-button.auth-passkey-button {
  position: relative;
  min-height: 3.55rem;
  border: 1px solid color-mix(in srgb, var(--aevro-blue) 46%, var(--auth-input-border));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--aevro-blue) 14%, var(--auth-input-bg)), var(--auth-input-bg));
  color: var(--auth-text);
  box-shadow: 0 0.7rem 2rem rgba(37, 99, 255, 0.12);
  font-size: 0.86rem;
  font-weight: 760;
  transition:
    transform var(--auth-motion-fast) var(--auth-ease-out),
    border-color var(--auth-motion-fast) ease,
    box-shadow var(--auth-motion-fast) ease;
}

.auth-screen.auth-screen .auth-passkey-button.auth-passkey-button:hover {
  border-color: color-mix(in srgb, var(--aevro-blue) 70%, var(--auth-input-border));
  transform: translateY(-1px);
  box-shadow: 0 0.9rem 2.4rem rgba(37, 99, 255, 0.16);
}

.auth-screen.auth-screen .auth-passkey-button > svg {
  width: 1.12rem;
  height: 1.12rem;
}

.auth-screen.auth-screen .auth-passkey-button > span {
  font-size: 0;
}

.auth-screen.auth-screen .auth-passkey-button > span::after {
  content: "Continue with Face ID or passkey";
  font-size: 0.86rem;
}

.auth-screen.auth-screen .auth-footer.auth-footer {
  order: 9;
  margin: 0.03rem 0 0;
  color: var(--auth-secondary);
  font-size: 0.8rem;
}

.auth-screen.auth-screen button:focus-visible,
.auth-screen.auth-screen .auth-input-row input:focus-visible,
.vault-screen.vault-screen button:focus-visible,
.vault-screen.vault-screen input:focus-visible {
  border-color: var(--auth-button-bg);
  outline: 3px solid rgba(37, 99, 255, 0.22);
  outline-offset: 2px;
}

/* Vault handoff ------------------------------------------------------------ */
.vault-screen.vault-screen:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 40;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  overflow: auto;
  padding:
    max(1.25rem, env(safe-area-inset-top))
    max(1rem, env(safe-area-inset-right))
    max(1.25rem, env(safe-area-inset-bottom))
    max(1rem, env(safe-area-inset-left));
  background:
    radial-gradient(circle at 50% 38%, rgba(37, 99, 255, 0.18), transparent 24rem),
    radial-gradient(circle at 50% 100%, rgba(34, 211, 238, 0.07), transparent 30rem),
    linear-gradient(150deg, var(--auth-page-gradient-from), var(--auth-page-gradient-to));
  animation: aevro-vault-backdrop-in var(--auth-motion-medium) var(--auth-ease-out) both;
}

.vault-screen.vault-screen .vault-card {
  position: relative;
  width: min(30rem, 100%);
  margin: 0;
  padding: clamp(1.55rem, 4vw, 2.3rem);
  border: 1px solid color-mix(in srgb, var(--auth-panel-border) 82%, transparent);
  border-radius: 1.55rem;
  background: color-mix(in srgb, var(--auth-panel-bg) 92%, transparent);
  box-shadow:
    0 2.2rem 7rem rgba(0, 0, 0, 0.36),
    inset 0 1px rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(30px) saturate(118%);
  animation: aevro-vault-card-in 480ms var(--auth-ease-spring) both;
}

.vault-screen.vault-screen .vault-mark {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  border: 1px solid color-mix(in srgb, var(--aevro-blue) 34%, var(--auth-panel-border));
  border-radius: 1rem;
  background: color-mix(in srgb, var(--aevro-blue) 10%, var(--auth-input-bg));
  box-shadow: 0 0.8rem 2.2rem rgba(37, 99, 255, 0.14);
  animation: aevro-vault-mark-in 560ms 90ms var(--auth-ease-spring) both;
}

.vault-screen.vault-screen .vault-mark img {
  width: 1.55rem;
  height: 1.55rem;
}

.vault-screen.vault-screen .eyebrow {
  color: var(--auth-muted);
  font-size: 0;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.vault-screen.vault-screen .eyebrow::after {
  content: "Vault access";
  font-size: 0.68rem;
}

.vault-screen.vault-screen #vault-title {
  margin: 0.36rem 0 0.62rem;
  color: var(--auth-text);
  font-size: clamp(1.85rem, 5vw, 2.45rem);
  font-weight: 790;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.vault-screen.vault-screen #vault-description,
.vault-screen.vault-screen .vault-footnote {
  color: var(--auth-secondary);
  line-height: 1.5;
}

.vault-screen.vault-screen #vault-description {
  margin-bottom: 1.2rem;
  font-size: 0.87rem;
}

.vault-screen.vault-screen .vault-form {
  display: grid;
  gap: 0.78rem;
}

.vault-screen.vault-screen .vault-form label,
.vault-screen.vault-screen .vault-reset-panel label {
  display: grid;
  gap: 0.38rem;
  color: var(--auth-secondary);
  font-size: 0.75rem;
  font-weight: 700;
}

.vault-screen.vault-screen input {
  min-height: 3.35rem;
  border: 1px solid var(--auth-input-border);
  border-radius: 0.86rem;
  background: var(--auth-input-bg);
  color: var(--auth-text);
  padding: 0 0.95rem;
  font-size: 0.92rem;
  transition:
    border-color var(--auth-motion-fast) ease,
    box-shadow var(--auth-motion-fast) ease;
}

.vault-screen.vault-screen input:focus {
  border-color: color-mix(in srgb, var(--aevro-blue) 62%, var(--auth-input-border));
  box-shadow: 0 0 0 3px rgba(37, 99, 255, 0.12);
}

.vault-screen.vault-screen #vault-submit {
  min-height: 3.45rem;
  margin-top: 0.12rem;
  border: 0;
  border-radius: 0.86rem;
  background: var(--auth-button-bg);
  color: var(--auth-button-text);
  box-shadow: 0 0.82rem 2rem rgba(37, 99, 255, 0.2);
  font-weight: 790;
}

.vault-screen.vault-screen #vault-status:not(:empty) {
  position: relative;
  min-height: 2.6rem;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0.62rem 0.75rem 0.62rem 2.45rem;
  border: 1px solid color-mix(in srgb, var(--auth-input-border) 70%, transparent);
  border-radius: 0.78rem;
  background: color-mix(in srgb, var(--auth-input-bg) 74%, transparent);
  color: var(--auth-secondary);
  font-size: 0.79rem;
  font-weight: 630;
}

.vault-screen.vault-screen #vault-status:not(:empty)::before {
  content: "";
  position: absolute;
  left: 0.86rem;
  width: 0.9rem;
  height: 0.9rem;
  border: 2px solid color-mix(in srgb, var(--aevro-blue) 28%, transparent);
  border-top-color: var(--aevro-blue);
  border-radius: 50%;
  animation: aevro-auth-spin 760ms linear infinite;
}

.vault-screen.vault-screen .vault-footnote {
  margin: 1rem 0 0;
  font-size: 0.74rem;
}

.vault-screen.vault-screen .vault-reset-button {
  margin-top: 0.72rem;
  color: var(--auth-muted);
  font-size: 0.75rem;
}

.vault-screen.vault-screen .vault-reset-panel {
  margin-top: 0.82rem;
}

/* The unlocked app should feel like the same object opening, not a hard page load. */
.app-shell:not([hidden]) {
  animation: aevro-app-reveal 420ms var(--auth-ease-out) both;
}

@keyframes aevro-auth-scene-in {
  from { opacity: 0; transform: scale(1.035); filter: blur(5px) saturate(0.9); }
  to { opacity: 1; transform: scale(1.015); }
}

@keyframes aevro-auth-card-in {
  from { opacity: 0; transform: translate3d(0, 14px, 0) scale(0.985); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes aevro-auth-spin {
  to { transform: rotate(360deg); }
}

@keyframes aevro-auth-status-sheen {
  0%, 24% { transform: translateX(-110%); }
  72%, 100% { transform: translateX(110%); }
}

@keyframes aevro-vault-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes aevro-vault-card-in {
  from { opacity: 0; transform: translate3d(0, 18px, 0) scale(0.965); filter: blur(8px); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); filter: blur(0); }
}

@keyframes aevro-vault-mark-in {
  from { opacity: 0; transform: scale(0.76) rotate(-7deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes aevro-app-reveal {
  from { opacity: 0; transform: translate3d(0, 7px, 0); filter: blur(4px); }
  to { opacity: 1; transform: translate3d(0, 0, 0); filter: blur(0); }
}

@media (max-width: 980px) {
  .auth-screen.auth-screen {
    grid-template-columns: minmax(0, 0.72fr) minmax(25rem, 1fr);
  }

  .auth-screen.auth-screen::before {
    background:
      linear-gradient(180deg, transparent 44%, color-mix(in srgb, var(--auth-bg) 80%, transparent) 100%),
      var(--auth-mascot-image) 50% 56% / min(27rem, 88%) auto no-repeat,
      var(--auth-hero-background-image) center / cover no-repeat;
  }
}

@media (max-width: 760px) {
  .auth-screen.auth-screen {
    display: grid;
    grid-template-columns: 1fr;
    place-items: start center;
    overflow: auto;
    padding:
      max(1rem, env(safe-area-inset-top))
      max(0.85rem, env(safe-area-inset-right))
      max(1.25rem, env(safe-area-inset-bottom))
      max(0.85rem, env(safe-area-inset-left));
    background:
      radial-gradient(circle at 50% 0%, rgba(37, 99, 255, 0.18), transparent 22rem),
      linear-gradient(180deg, var(--auth-page-gradient-from), var(--auth-page-gradient-to));
  }

  .auth-screen.auth-screen::before {
    content: "Aevro";
    grid-column: 1;
    grid-row: 1;
    width: auto;
    min-height: 2.8rem;
    align-self: start;
    justify-self: center;
    display: grid;
    place-items: center;
    margin: 0 0 0.82rem;
    border: 0;
    background: none;
    color: var(--auth-text);
    font-size: 1.05rem;
    font-weight: 820;
    letter-spacing: -0.02em;
    filter: none;
    transform: none;
    animation: none;
  }

  .auth-screen.auth-screen .auth-panel.auth-panel {
    grid-column: 1;
    grid-row: 2;
    width: min(100%, 31rem);
    align-self: start;
    justify-self: center;
    padding: 1.2rem;
    border-radius: 1.18rem;
    box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.2);
  }

  .auth-screen.auth-screen .auth-brand.auth-brand {
    display: none;
  }

  .auth-screen.auth-screen .auth-panel.auth-panel::before {
    margin-top: 0;
    font-size: 1.72rem;
  }

  .auth-screen.auth-screen .auth-panel.auth-panel::after {
    font-size: 0.81rem;
  }

  .vault-screen.vault-screen .vault-card {
    border-radius: 1.18rem;
    padding: 1.25rem;
  }
}

@media (max-width: 390px) {
  .auth-screen.auth-screen {
    padding-inline: 0.65rem;
  }

  .auth-screen.auth-screen .auth-panel.auth-panel {
    padding: 1rem;
  }

  .auth-screen.auth-screen .auth-form-actions.auth-form-actions {
    grid-template-columns: 1fr;
  }

  .auth-screen.auth-screen #auth-back-button:not([hidden]),
  .auth-screen.auth-screen #auth-submit-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-screen.auth-screen::before,
  .auth-screen.auth-screen .auth-panel.auth-panel,
  .auth-screen.auth-screen .auth-status.auth-status::before,
  .auth-screen.auth-screen .auth-status.auth-status::after,
  .vault-screen.vault-screen:not([hidden]),
  .vault-screen.vault-screen .vault-card,
  .vault-screen.vault-screen .vault-mark,
  .vault-screen.vault-screen #vault-status:not(:empty)::before,
  .app-shell:not([hidden]) {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}
