:root {
  --auth-brand-blue: #00008b;
  --auth-brand-blue-dark: #060a4f;
  --auth-brand-red: #c70100;
  --auth-brand-red-dark: #920100;
  --auth-bg: linear-gradient(180deg, #f6f7ff 0%, #eef1ff 58%, #fff5f5 100%);
  --auth-panel: rgba(255, 255, 255, 0.96);
  --auth-border: rgba(6, 10, 79, 0.08);
  --auth-text: #1c2240;
  --auth-muted: #626986;
  --auth-primary: var(--auth-brand-blue);
  --auth-primary-dark: var(--auth-brand-blue-dark);
  --auth-accent: #ffe0e0;
  --auth-warning: #a13d2d;
  --auth-warning-bg: #fff0ed;
  --auth-success: #176f46;
  --auth-success-bg: #ebf8f0;
  --auth-info: #245d95;
  --auth-info-bg: #edf5fe;
  --auth-shadow: 0 24px 60px rgba(20, 34, 18, 0.12);
  --auth-radius-xl: 28px;
  --auth-radius-lg: 20px;
  --auth-radius-md: 14px;
  --auth-radius-sm: 10px;
}

body.mobile-auth-page {
  background: var(--auth-bg);
  color: var(--auth-text);
}

.mobile-auth-shell {
  min-height: 100vh;
  padding: 20px 16px 32px;
  background:
    radial-gradient(circle at top right, rgba(199, 1, 0, 0.16), transparent 34%),
    radial-gradient(circle at top left, rgba(0, 0, 139, 0.14), transparent 30%),
    var(--auth-bg);
}

.mobile-auth-shell .content-wrapper.auth,
.mobile-auth-shell .content-wrapper.auth.bg-img {
  background: transparent;
}

.mobile-auth-stage {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 460px);
  gap: 24px;
  align-items: center;
  min-height: calc(100vh - 52px);
}

.mobile-auth-hero {
  padding: 8px 12px 8px 8px;
}

.mobile-auth-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--auth-primary-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mobile-auth-title {
  margin: 18px 0 10px;
  font-size: clamp(2rem, 4vw, 3.75rem);
  line-height: 1.05;
  font-weight: 800;
  color: var(--auth-text);
}

.mobile-auth-subtitle {
  max-width: 560px;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--auth-muted);
  margin: 0;
}

.mobile-auth-points {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
  max-width: 560px;
}

.mobile-auth-points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--auth-text);
}

.mobile-auth-points strong {
  display: block;
  font-size: 0.98rem;
}

.mobile-auth-points span {
  display: block;
  color: var(--auth-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.mobile-auth-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--auth-primary-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 10px 24px rgba(20, 34, 18, 0.08);
  flex: 0 0 40px;
}

.mobile-auth-panel {
  border: 1px solid var(--auth-border);
  border-radius: var(--auth-radius-xl);
  background: var(--auth-panel);
  box-shadow: var(--auth-shadow);
  backdrop-filter: blur(12px);
}

.mobile-auth-card {
  padding: 28px 24px;
}

.mobile-auth-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.mobile-auth-brand .img-avatar {
  width: min(150px, 42vw);
  height: auto;
}

.mobile-auth-eyebrow {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--auth-primary-dark);
}

.mobile-auth-card h1,
.mobile-auth-card h2,
.mobile-auth-card h3 {
  margin: 0;
  color: var(--auth-text);
}

.mobile-auth-copy {
  margin: 10px 0 0;
  color: var(--auth-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.mobile-auth-notice {
  border-radius: var(--auth-radius-md);
  padding: 14px 16px;
  margin-bottom: 18px;
  font-size: 0.93rem;
  line-height: 1.5;
}

.mobile-auth-notice.error {
  background: var(--auth-warning-bg);
  color: var(--auth-warning);
  border: 1px solid rgba(161, 61, 45, 0.14);
}

.mobile-auth-notice.success {
  background: var(--auth-success-bg);
  color: var(--auth-success);
  border: 1px solid rgba(23, 111, 70, 0.14);
}

.mobile-auth-notice.info {
  background: var(--auth-info-bg);
  color: var(--auth-info);
  border: 1px solid rgba(36, 93, 149, 0.12);
}

.mobile-auth-form {
  display: grid;
  gap: 16px;
}

.mobile-auth-form .form-group {
  margin-bottom: 0;
}

.mobile-auth-label,
.mobile-auth-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--auth-text);
  font-size: 0.9rem;
  font-weight: 600;
}

.mobile-auth-form .form-control,
.mobile-auth-form .custom-select,
.mobile-auth-form select,
.mobile-auth-form input {
  min-height: 52px;
  border-radius: var(--auth-radius-md);
  border: 1px solid rgba(20, 34, 18, 0.14);
  box-shadow: none;
  color: var(--auth-text);
  padding-left: 14px;
  padding-right: 14px;
  font-size: 16px;
}

.mobile-auth-form .form-control:focus,
.mobile-auth-form .custom-select:focus,
.mobile-auth-form select:focus,
.mobile-auth-form input:focus {
  border-color: rgba(0, 0, 139, 0.42);
  box-shadow: 0 0 0 4px rgba(0, 0, 139, 0.12);
}

.mobile-auth-actions {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.btn-success,
.btn-warning,
.btn-gradient-success,
.btn-gradient-warning,
.custom-green {
  color: #fff !important;
  border-color: transparent !important;
}

.btn-success,
.btn-gradient-success,
.custom-green {
  background: linear-gradient(135deg, var(--auth-brand-blue) 0%, var(--auth-brand-blue-dark) 52%, var(--auth-brand-red) 100%) !important;
}

.btn-success:hover,
.btn-success:focus,
.btn-success:active,
.btn-success:not(:disabled):not(.disabled).active,
.btn-success:not(:disabled):not(.disabled):active,
.show > .btn-success.dropdown-toggle,
.btn-gradient-success:hover,
.btn-gradient-success:focus,
.btn-gradient-success:active,
.btn-warning:hover,
.btn-warning:focus,
.btn-warning:active,
.btn-warning:not(:disabled):not(.disabled).active,
.btn-warning:not(:disabled):not(.disabled):active,
.show > .btn-warning.dropdown-toggle,
.btn-gradient-warning:hover,
.btn-gradient-warning:focus,
.btn-gradient-warning:active,
.custom-green:hover,
.custom-green:focus,
.custom-green:active {
  color: #fff !important;
  border-color: transparent !important;
}

.btn-success:hover,
.btn-success:focus,
.btn-success:active,
.btn-success:not(:disabled):not(.disabled).active,
.btn-success:not(:disabled):not(.disabled):active,
.show > .btn-success.dropdown-toggle,
.btn-gradient-success:hover,
.btn-gradient-success:focus,
.btn-gradient-success:active,
.custom-green:hover,
.custom-green:focus,
.custom-green:active {
  background: linear-gradient(135deg, var(--auth-brand-blue-dark) 0%, #090d67 45%, var(--auth-brand-red-dark) 100%) !important;
}

.btn-warning,
.btn-gradient-warning {
  background: linear-gradient(135deg, var(--auth-brand-red) 0%, #d93a35 36%, var(--auth-brand-blue) 100%) !important;
}

.btn-warning:hover,
.btn-warning:focus,
.btn-warning:active,
.btn-warning:not(:disabled):not(.disabled).active,
.btn-warning:not(:disabled):not(.disabled):active,
.show > .btn-warning.dropdown-toggle,
.btn-gradient-warning:hover,
.btn-gradient-warning:focus,
.btn-gradient-warning:active {
  background: linear-gradient(135deg, var(--auth-brand-red-dark) 0%, #a70f18 40%, var(--auth-brand-blue-dark) 100%) !important;
}

.btn-outline-success,
.btn-outline-warning {
  background: transparent !important;
}

.btn-outline-success {
  color: var(--auth-brand-blue) !important;
  border-color: rgba(0, 0, 139, 0.34) !important;
}

.btn-outline-success:hover,
.btn-outline-success:focus,
.btn-outline-success:active,
.btn-outline-success:not(:disabled):not(.disabled).active,
.btn-outline-success:not(:disabled):not(.disabled):active,
.show > .btn-outline-success.dropdown-toggle {
  color: #fff !important;
  background: linear-gradient(135deg, var(--auth-brand-blue) 0%, var(--auth-brand-blue-dark) 52%, var(--auth-brand-red) 100%) !important;
  border-color: transparent !important;
}

.btn-outline-warning {
  color: var(--auth-brand-red) !important;
  border-color: rgba(199, 1, 0, 0.3) !important;
}

.btn-outline-warning:hover,
.btn-outline-warning:focus,
.btn-outline-warning:active,
.btn-outline-warning:not(:disabled):not(.disabled).active,
.btn-outline-warning:not(:disabled):not(.disabled):active,
.show > .btn-outline-warning.dropdown-toggle {
  color: #fff !important;
  background: linear-gradient(135deg, var(--auth-brand-red) 0%, #d93a35 36%, var(--auth-brand-blue) 100%) !important;
  border-color: transparent !important;
}

.btn-inverse-success {
  color: var(--auth-brand-blue) !important;
  background: rgba(0, 0, 139, 0.08) !important;
  border-color: transparent !important;
}

.btn-inverse-success:hover,
.btn-inverse-success:focus,
.btn-inverse-success:active {
  color: #fff !important;
  background: var(--auth-brand-blue) !important;
}

.btn-inverse-warning {
  color: var(--auth-brand-red) !important;
  background: rgba(199, 1, 0, 0.08) !important;
  border-color: transparent !important;
}

.btn-inverse-warning:hover,
.btn-inverse-warning:focus,
.btn-inverse-warning:active {
  color: #fff !important;
  background: var(--auth-brand-red) !important;
}

.btn-success:focus,
.btn-warning:focus,
.btn-outline-success:focus,
.btn-outline-warning:focus,
.btn-gradient-success:focus,
.btn-gradient-warning:focus,
.custom-green:focus {
  box-shadow: 0 0 0 0.2rem rgba(0, 0, 139, 0.18) !important;
}

.mobile-auth-primary,
.mobile-auth-secondary,
.mobile-auth-form .btn,
.mobile-auth-form .auth-form-btn,
.mobile-auth-form input[type="submit"] {
  min-height: 52px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 1rem;
}

.mobile-auth-primary,
.mobile-auth-form .btn-info,
.mobile-auth-form input[type="submit"] {
  background: linear-gradient(135deg, var(--auth-brand-blue) 0%, var(--auth-brand-blue-dark) 52%, var(--auth-brand-red) 100%);
  border-color: transparent;
}

.mobile-auth-primary:hover,
.mobile-auth-form .btn-info:hover,
.mobile-auth-form input[type="submit"]:hover {
  background: linear-gradient(135deg, var(--auth-brand-blue-dark) 0%, #090d67 45%, var(--auth-brand-red-dark) 100%);
}

.mobile-auth-secondary {
  background: #f3f6ef;
  color: var(--auth-text);
  border: 1px solid rgba(20, 34, 18, 0.1);
}

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

.mobile-auth-footer a,
.mobile-auth-footer button,
.mobile-auth-link {
  color: var(--auth-primary-dark);
  font-weight: 700;
  background: none;
  border: none;
  padding: 0;
}

.mobile-auth-helper {
  margin-top: 6px;
  color: var(--auth-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.mobile-auth-choice-grid {
  display: grid;
  gap: 16px;
}

.mobile-auth-choice {
  display: block;
  padding: 20px;
  border: 1px solid rgba(20, 34, 18, 0.08);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(244, 248, 240, 0.95));
  box-shadow: 0 18px 36px rgba(20, 34, 18, 0.08);
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.mobile-auth-choice:hover,
.mobile-auth-choice:focus {
  color: inherit;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 24px 42px rgba(20, 34, 18, 0.11);
  border-color: rgba(0, 0, 139, 0.2);
}

.mobile-auth-choice h4,
.mobile-auth-choice h5 {
  margin-bottom: 8px;
}

.mobile-auth-choice p {
  margin-bottom: 14px;
  color: var(--auth-muted);
  line-height: 1.6;
}

.mobile-auth-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(199, 1, 0, 0.1);
  color: var(--auth-brand-red);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mobile-stepper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.mobile-step {
  border-radius: 16px;
  border: 1px solid rgba(20, 34, 18, 0.08);
  background: #f6f7ff;
  padding: 12px;
}

.mobile-step.is-active {
  background: linear-gradient(135deg, rgba(0, 0, 139, 0.08), rgba(199, 1, 0, 0.08));
  border-color: rgba(0, 0, 139, 0.18);
}

.mobile-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #fff;
  color: var(--auth-primary-dark);
  font-size: 0.84rem;
  font-weight: 800;
}

.mobile-step-title {
  display: block;
  margin-top: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--auth-text);
}

.mobile-step-text {
  display: block;
  margin-top: 4px;
  color: var(--auth-muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.mobile-step-panel[hidden] {
  display: none !important;
}

.mobile-step-actions {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-top: 16px;
}

.mobile-step-actions .btn {
  flex: 1 1 auto;
}

.mobile-auth-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.mobile-auth-section-title {
  margin: 0 0 6px;
  font-size: 1.08rem;
  font-weight: 700;
}

.mobile-auth-section-copy {
  margin: 0 0 14px;
  color: var(--auth-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

@media (max-width: 991.98px) {
  .mobile-auth-stage {
    grid-template-columns: 1fr;
    align-items: start;
    min-height: auto;
  }

  .mobile-auth-hero {
    order: 2;
    padding: 0 4px;
  }

  .mobile-auth-panel {
    order: 1;
  }
}

@media (max-width: 767.98px) {
  .mobile-auth-shell {
    padding: 12px 12px 26px;
  }

  .mobile-auth-card {
    padding: 22px 18px;
  }

  .mobile-auth-title {
    font-size: 2rem;
  }

  .mobile-auth-points {
    gap: 12px;
  }

  .mobile-auth-grid-2 {
    grid-template-columns: 1fr;
  }

  .mobile-stepper {
    grid-template-columns: 1fr;
  }

  .mobile-step-actions {
    flex-direction: column;
  }
}
