/* ROTCMIS login / register — command portal look. Visual only. */

body.auth-page.auth-command {
  --lc-navy: #020617;
  --lc-panel: rgba(7, 18, 38, 0.78);
  --lc-line: rgba(148, 197, 255, 0.16);
  --lc-cyan: #38bdf8;
  --lc-gold: #f59e0b;
  --lc-text: #e2e8f0;
  --lc-muted: #94a3b8;
  display: block;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
  margin: 0;
  min-height: 100vh;
  color: var(--lc-text);
  background: #020617;
  overflow-x: hidden;
}

.auth-command .auth-shell {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: calc(100vh - 4.2rem);
  display: grid;
  place-items: center;
  padding: 2.4rem 1.25rem 3rem;
}

.auth-command .auth-shell-wide {
  place-items: start center;
}

.auth-command .auth-frame {
  position: relative;
  width: min(72rem, 100%);
  padding: 1.6rem;
  background: linear-gradient(180deg, rgba(7, 18, 38, 0.82), rgba(2, 6, 23, 0.62));
  border: 1px solid rgba(56, 189, 248, 0.16);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.auth-command .auth-frame::before,
.auth-command .auth-frame::after,
.auth-command .auth-frame .lc-corner::before,
.auth-command .auth-frame .lc-corner::after {
  content: "";
  position: absolute;
  width: 1.2rem;
  height: 1.2rem;
  border-color: rgba(56, 189, 248, 0.7);
  border-style: solid;
}

.auth-command .auth-frame::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.auth-command .auth-frame::after { top: -1px; right: -1px; border-width: 1px 1px 0 0; }
.auth-command .auth-frame .lc-corner::before { bottom: -1px; left: -1px; border-width: 0 0 1px 1px; }
.auth-command .auth-frame .lc-corner::after { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }

.auth-command .login-wrapper {
  max-width: none;
  min-height: 0;
  margin: 0;
  padding: 0;
  display: block;
}

.auth-command .login-wrapper .container,
.auth-command .auth-shell .container {
  max-width: none;
  padding: 0;
}

.auth-command .login-row,
.auth-command .auth-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  width: 100%;
  max-width: none;
  backdrop-filter: none;
}

.auth-command .auth-card:hover,
.auth-command .login-row:hover {
  box-shadow: none;
  transform: none;
}

.auth-command .login-brand-col,
.auth-command .auth-header {
  background: transparent;
  color: var(--lc-text);
  padding: 1.4rem 1.2rem 1.6rem;
  text-align: center;
  border: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.auth-command .login-brand-col::after {
  display: none;
}

.auth-command .login-brand-col .brand-title,
.auth-command .auth-header .brand-title,
.auth-command .auth-title {
  margin: 0;
  color: #f8fafc;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 750;
  letter-spacing: 0.12em;
  text-shadow: none;
}

.auth-command .login-brand-col .brand-subtitle,
.auth-command .auth-header .brand-subtitle {
  margin: 0.45rem 0 0;
  color: #cbd5e1;
  opacity: 1;
  font-size: 0.95rem;
}

.auth-command .login-brand-col .brand-visual {
  margin: 0.35rem 0 0;
  font-size: 0;
}

.auth-command .login-form-col,
.auth-command .auth-body {
  padding: 1.5rem 1.25rem 1.35rem;
  background: rgba(2, 6, 23, 0.42);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.auth-command .form-title {
  margin: 1rem 0 0.25rem;
  color: #f8fafc;
  font-size: 1.45rem;
  font-weight: 700;
}

.auth-command .form-subtitle {
  margin: 0 0 1.4rem;
  color: var(--lc-muted);
  font-size: 0.92rem;
  opacity: 1;
}

.auth-command .form-label {
  color: #cbd5e1;
  font-weight: 650;
}

.auth-command .form-control,
.auth-command .form-select,
.auth-command .select2-container--bootstrap-5 .select2-selection {
  background: rgba(2, 6, 23, 0.78);
  border: 1px solid rgba(56, 189, 248, 0.22);
  color: #f8fafc;
  box-shadow: none;
}

.auth-command .form-control::placeholder {
  color: #64748b;
}

.auth-command .form-control:focus,
.auth-command .form-select:focus,
.auth-command .select2-container--bootstrap-5.select2-container--focus .select2-selection,
.auth-command .select2-container--bootstrap-5.select2-container--open .select2-selection {
  border-color: rgba(56, 189, 248, 0.7);
  box-shadow: 0 0 0 0.2rem rgba(56, 189, 248, 0.12);
  background: rgba(2, 6, 23, 0.9);
  color: #fff;
}

.auth-command .form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E");
}

.auth-command .input-icon,
.auth-command .password-toggle {
  color: #7dd3fc;
}

.auth-command .password-toggle:hover {
  color: #f8fafc;
}

.auth-command .form-check-label {
  color: #cbd5e1;
}

.auth-command .form-check-input {
  background-color: rgba(2, 6, 23, 0.8);
  border-color: rgba(56, 189, 248, 0.35);
}

.auth-command .form-check-input:checked {
  background-color: #38bdf8;
  border-color: #38bdf8;
}

.auth-command .auth-link,
.auth-command .terms-link {
  color: var(--lc-cyan);
  background: transparent;
}

.auth-command .auth-link:hover,
.auth-command .terms-link:hover,
.auth-command .terms-link:focus {
  color: #f8fafc;
}

.auth-command .btn {
  border-radius: 0;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.82rem;
  font-weight: 700;
}

.auth-command .btn-primary,
.auth-command .profile-photo-btn-primary {
  color: #020617;
  background: linear-gradient(135deg, #f8fafc, #cbd5e1);
  border: 1px solid transparent;
  box-shadow: none;
}

.auth-command .btn-primary:hover,
.auth-command .btn-primary:focus-visible,
.auth-command .profile-photo-btn-primary:hover {
  color: #020617;
  filter: brightness(1.06);
  transform: none;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.45);
}

.auth-command .btn-secondary,
.auth-command .btn-outline-primary,
.auth-command .btn-outline-success,
.auth-command .btn-outline-secondary,
.auth-command .profile-photo-btn {
  color: #f8fafc;
  background: transparent;
  border: 1px solid rgba(226, 232, 240, 0.28);
  box-shadow: none;
}

.auth-command .btn-secondary:hover,
.auth-command .btn-outline-primary:hover,
.auth-command .btn-outline-success:hover,
.auth-command .btn-outline-secondary:hover,
.auth-command .profile-photo-btn:hover {
  color: #fff;
  background: rgba(8, 47, 73, 0.45);
  border-color: var(--lc-cyan);
  transform: none;
}

.auth-command .divider::before {
  background: rgba(148, 163, 184, 0.22);
}

.auth-command .divider span,
.auth-command .form-footer .divider span {
  background: #071226;
  color: var(--lc-muted);
}

.auth-command .form-footer {
  border-top-color: rgba(148, 163, 184, 0.16);
}

.auth-command .step-number {
  background: rgba(15, 23, 42, 0.9);
  color: #94a3b8;
  border: 1px solid rgba(56, 189, 248, 0.2);
  box-shadow: none;
}

.auth-command .step:not(:last-child)::after {
  background: rgba(148, 163, 184, 0.2);
}

.auth-command .step.active .step-number {
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  color: #020617;
}

.auth-command .step.completed .step-number {
  background: #4ade80;
  color: #022c22;
}

.auth-command .step.completed:not(:last-child)::after {
  background: linear-gradient(90deg, #4ade80, #38bdf8);
}

.auth-command .step-label {
  color: #64748b;
}

.auth-command .step.active .step-label {
  color: #e2e8f0;
}

.auth-command .progress-bar {
  background: rgba(148, 163, 184, 0.16);
  box-shadow: none;
}

.auth-command .progress-fill {
  background: linear-gradient(90deg, #38bdf8, #2563eb);
}

.auth-command .password-meter-bar {
  background: rgba(148, 163, 184, 0.2);
}

.auth-command .password-meter-text,
.auth-command .password-match-msg {
  color: #cbd5e1;
}

.auth-command .password-rules-wrap {
  border-color: rgba(56, 189, 248, 0.18);
  background: rgba(2, 6, 23, 0.55);
}

.auth-command .password-rules-title {
  color: #7dd3fc;
}

.auth-command .password-rules-list li {
  color: #94a3b8;
}

.auth-command .password-rules-list li.met {
  color: #e2e8f0;
}

.auth-command .profile-photo-upload {
  border-color: rgba(56, 189, 248, 0.24);
  background: rgba(2, 6, 23, 0.45);
}

.auth-command .profile-photo-preview-wrap {
  border-color: rgba(56, 189, 248, 0.28);
  background: #071226;
  box-shadow: none;
}

.auth-command .profile-photo-filename,
.auth-command .profile-photo-hint,
.auth-command .text-muted {
  color: #94a3b8 !important;
}

.auth-command .legal-disclosure-card {
  border-color: rgba(56, 189, 248, 0.22);
  border-left-color: var(--lc-cyan);
  background: rgba(8, 47, 73, 0.28);
  color: #e2e8f0;
}

.auth-command .legal-disclosure-card h3 {
  color: #f8fafc;
}

.auth-command .legal-meta span {
  background: rgba(8, 47, 73, 0.7);
  color: #7dd3fc;
}

.auth-command .alert {
  background: rgba(7, 18, 38, 0.88);
  color: #e2e8f0;
  box-shadow: none;
}

.auth-command .alert-success {
  border-left-color: #4ade80;
  color: #bbf7d0;
}

.auth-command .alert-error,
.auth-command .alert-danger {
  border-left-color: #f87171;
  color: #fecaca;
}

.auth-command .alert-warning {
  border-left-color: var(--lc-gold);
  color: #fde68a;
}

.auth-command .alert-info {
  border-left-color: var(--lc-cyan);
  color: #bae6fd;
}

.auth-command .alert-dismissible .btn-close {
  filter: invert(1);
}

.auth-command .enterprise-error,
.auth-command .backend-error-summary {
  background: rgba(69, 10, 10, 0.55);
  border-color: #f87171;
  color: #fecaca;
  box-shadow: none;
}

.auth-command .backend-error-summary h5 {
  color: #fecaca;
}

.auth-command .legal-modal .modal-content {
  background: #071226;
  color: #e2e8f0;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.auth-command .legal-modal .modal-header,
.auth-command .legal-modal .modal-footer {
  border-color: rgba(148, 163, 184, 0.16);
}

.auth-command .legal-modal h6 {
  color: #7dd3fc;
}

.auth-command .legal-modal p,
.auth-command .legal-modal li,
.auth-command .legal-modal .legal-version-line {
  color: #cbd5e1;
}

.auth-command .legal-modal .btn-close {
  filter: invert(1);
}

.auth-command #profileCameraModal .modal-content {
  background: #071226;
  color: #e2e8f0;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.auth-command #profileCameraModal .modal-header,
.auth-command #profileCameraModal .modal-footer {
  border-color: rgba(148, 163, 184, 0.16);
}

.auth-command #profileCameraModal .btn-close {
  filter: invert(1);
}

body.auth-command .select2-dropdown {
  background: #071226;
  border-color: rgba(56, 189, 248, 0.28);
  color: #e2e8f0;
}

body.auth-command .select2-container--bootstrap-5 .select2-results__option {
  color: #e2e8f0;
}

body.auth-command .select2-container--bootstrap-5 .select2-results__option--highlighted {
  background-color: #0c4a6e;
  color: #fff;
}

body.auth-command .select2-container--bootstrap-5 .select2-search--dropdown .select2-search__field {
  background: #020617;
  border-color: rgba(56, 189, 248, 0.28);
  color: #f8fafc;
}

body.auth-command .select2-container--bootstrap-5 .select2-selection__rendered {
  color: #f8fafc;
}

@media (max-width: 767.98px) {
  .auth-command .login-brand-col {
    padding: 1.1rem 1rem 0.4rem;
  }

  .auth-command .login-form-col,
  .auth-command .auth-body {
    padding: 1.2rem 1rem 1.15rem;
  }
}

@media (max-width: 480px) {
  body.auth-page.auth-command {
    padding: 0;
    background: #020617;
  }

  .auth-command .auth-card,
  .auth-command .login-row {
    border-radius: 0;
    min-height: 0;
    box-shadow: none;
    max-width: none;
  }

  .auth-command .auth-frame {
    padding: 1rem 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-command .multi-step-form .form-step.active {
    animation: none;
  }
}
