/* Brex dashboard login — pixel match dashboard.brex.com */
.auth-shell {
  min-height: 100vh;
  display: flex;
}

.auth-panel-left {
  flex: 1;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  min-width: 0;
}

.auth-left-inner {
  width: 100%;
  max-width: 420px;
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.auth-brand-center {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
}

.auth-logo-full {
  height: 24px;
  width: auto;
  display: block;
}

.auth-card {
  width: 100%;
  background: #fff;
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  padding: 28px 28px 24px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.auth-card-title {
  font-size: 17px;
  font-weight: 600;
  color: #171717;
  margin-bottom: 22px;
  letter-spacing: -0.01em;
}

.auth-card-subtitle {
  font-size: 14px;
  color: #52525b;
  margin: -12px 0 20px;
  line-height: 1.5;
}

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

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #171717;
  margin-bottom: 8px;
}

.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="text"] {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #d4d4d8;
  border-radius: 8px;
  font-size: 15px;
  color: #171717;
  background: #fff;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-group input:focus {
  border-color: #a1a1aa;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.04);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 2px;
}

.checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: #171717;
  flex-shrink: 0;
}

.checkbox-row label {
  font-size: 13px;
  font-weight: 400;
  color: #52525b;
  line-height: 1.45;
  margin: 0;
  cursor: pointer;
}

.btn-primary-orange {
  height: 44px;
  background: #f36030;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  width: 100%;
  margin-top: 4px;
}

.btn-primary-orange:hover {
  background: #e55628;
}

.btn-primary-orange:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.alt-signin-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.btn-sso {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #d4d4d8;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #171717;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  width: 100%;
}

.btn-sso:hover {
  background: #fafafa;
  border-color: #a1a1aa;
}

.auth-signup-prompt {
  margin-top: 20px;
  font-size: 14px;
  color: #52525b;
  text-align: center;
}

.auth-signup-prompt a {
  color: #171717;
  font-weight: 600;
  text-decoration: none;
}

.auth-signup-prompt a:hover {
  text-decoration: underline;
}

.auth-page-footer {
  margin-top: auto;
  padding-top: 48px;
  text-align: center;
  font-size: 12px;
  color: #71717a;
  line-height: 1.6;
}

.auth-page-footer-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 4px;
}

.auth-page-footer-links a {
  color: #71717a;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-page-footer-links a:hover {
  color: #171717;
}

/* Right promo panel */
.auth-panel-right {
  flex: 1;
  background: #f4f4f5;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 56px 64px;
  min-width: 0;
}

@media (min-width: 960px) {
  .auth-panel-right {
    display: flex;
  }
}

.promo-content {
  max-width: 520px;
  width: 100%;
}

.promo-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #71717a;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.promo-headline {
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 600;
  color: #171717;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.promo-visual-link {
  display: block;
  border-radius: 0 0 24px 0;
  overflow: hidden;
  margin-bottom: 16px;
}

.promo-visual-img {
  display: block;
  width: 100%;
  height: auto;
}

.promo-cta {
  font-size: 14px;
  font-weight: 500;
  color: #171717;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.promo-cta:hover {
  color: #f36030;
}

/* Verify device page */
.verify-copy p {
  font-size: 14px;
  color: #52525b;
  line-height: 1.55;
  margin-bottom: 12px;
}

.verify-instruction {
  color: #171717 !important;
  font-weight: 500;
}

.verify-banner {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 12px 14px;
  margin: 16px 0;
}

.verify-banner-title {
  font-size: 14px;
  font-weight: 600;
  color: #166534;
  margin-bottom: 4px;
}

.verify-banner-body {
  font-size: 13px;
  color: #15803d;
  line-height: 1.45;
}

.verify-footer {
  margin-top: 20px;
  font-size: 14px;
  color: #52525b;
  line-height: 1.6;
}

.verify-footer .link-btn {
  color: #171717;
  font-weight: 500;
  text-decoration: underline;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-size: inherit;
}

.verify-support a {
  color: #171717;
  font-weight: 500;
  text-decoration: underline;
}

.verify-continue {
  margin-top: 20px;
}

/* Password step extras */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #71717a;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-bottom: 16px;
}

.back-link:hover {
  color: #171717;
}

.email-display {
  font-size: 13px;
  color: #71717a;
  margin-bottom: 16px;
}

.email-display strong {
  color: #171717;
  font-weight: 500;
}

.forgot-row {
  text-align: right;
  margin-top: -8px;
}

.forgot-row a {
  font-size: 13px;
  color: #52525b;
  text-decoration: none;
}

.forgot-row a:hover {
  text-decoration: underline;
}

.form-group input.input-error {
  border-color: #dc2626;
}

.form-error-banner,
.field-error {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #991b1b;
  font-size: 13px;
  line-height: 1.45;
}

.form-error-banner {
  margin-bottom: 18px;
}

.field-error {
  margin-top: 8px;
}

.error-icon {
  flex-shrink: 0;
  margin-top: 1px;
}

.form-error-banner.hidden,
.field-error.hidden {
  display: none !important;
}

.form-error {
  font-size: 13px;
  color: #dc2626;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 10px 12px;
}

.form-error.hidden {
  display: none;
}

/* Modal & toast */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 7000;
  padding: 24px;
}

.modal {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 440px;
  padding: 24px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.modal-title {
  font-size: 18px;
  font-weight: 600;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #737373;
  border: none;
  background: transparent;
  cursor: pointer;
}

.modal-body {
  font-size: 14px;
  color: #525252;
  line-height: 1.6;
}

.modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 20px;
}

.btn-primary {
  height: 36px;
  padding: 0 16px;
  background: #f36030;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.btn-secondary {
  height: 36px;
  padding: 0 16px;
  background: #fff;
  color: #404040;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.loading-modal-overlay {
  background: rgba(0, 0, 0, 0.45);
}

.loading-modal {
  background: #fff;
  border-radius: 12px;
  width: min(420px, calc(100vw - 48px));
  min-height: 420px;
  padding: 24px 28px 32px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

.loading-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}

.loading-modal__title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  color: #15191e;
}

.loading-modal__close {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: #737373;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-modal__close:hover {
  background: #f5f5f5;
}

.loading-modal__body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 15px;
  line-height: 1.5;
  color: #15191e;
  padding: 48px 16px 24px;
}

.toast-container {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 2000;
}

.toast {
  background: #171717;
  color: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  animation: toast-in 0.25s ease;
}

.toast.error { background: #ef4444; }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.tx-row td {
  padding: 12px 16px !important;
  font-size: 13px;
  color: #404040;
  border-bottom: 1px solid #f0f0f0;
}

.status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 500;
  background: #ecfdf5;
  color: #059669;
}

.status-badge.pending {
  background: #fef3c7;
  color: #d97706;
}

.hidden { display: none !important; }
