/* Auth pages — Bootstrap-free shell (login, register, password reset) */

.bm-auth-page {
  margin: 0;
  font-family: 'Source Sans Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #333;
}

.bm-auth-page .text-white {
  color: #fff;
}

.bm-auth-page .text-muted {
  color: #6b7280;
}

.bm-auth-page .pull-right {
  float: right;
}

.bm-auth-page .container-login100 {
  flex-direction: column;
  align-items: center;
}

.bm-auth-page .bm-auth-demo-panel {
  width: 100%;
  max-width: 960px;
  margin-top: 16px;
}

.bm-auth-page .bm-auth-topbar {
  width: 100%;
  max-width: 960px;
  margin: 0 auto 12px;
  padding: 0 8px;
}

.bm-auth-page .bm-auth-topbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bm-auth-page .bm-auth-topbar-lang {
  flex: 0 1 220px;
  text-align: center;
}

.bm-auth-page .bm-auth-topbar-links {
  flex: 1 1 280px;
  text-align: right;
  padding-top: 4px;
}

.bm-auth-page .bm-auth-lang-select,
.bm-auth-page select.bm-list-field {
  display: block;
  width: 100%;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: #0f172a;
  font-size: 13px;
  box-sizing: border-box;
}

.bm-auth-page .bm-auth-lang-select {
  width: 100%;
  max-width: 180px;
  margin: 10px auto;
}

.bm-auth-page .bm-auth-link {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.bm-auth-page .bm-auth-link:hover {
  color: #e2e8f0;
}

.bm-auth-page .bm-auth-register-link {
  white-space: nowrap;
}

/* main.css fixes the card at 960px; keep it fluid so phones never scroll sideways. */
.bm-auth-page .wrap-login100 {
  width: 100%;
  max-width: 960px;
  box-sizing: border-box;
}

.bm-auth-page .wrap-login100 > .bm-auth-form-column {
  flex: 1 1 320px;
  min-width: 0;
  max-width: 100%;
}

.bm-auth-page .login-form {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}

.bm-auth-page .login-form .form-header {
  font-size: 18px;
  margin: 0 0 16px;
  text-align: center;
}

.bm-auth-page .login100-form-title {
  display: block;
  width: 100%;
  margin-bottom: 24px;
}

/* Fields */
.bm-auth-page .bm-auth-field {
  position: relative;
  margin-bottom: 14px;
}

.bm-auth-page .bm-auth-field .bm-list-field,
.bm-auth-page .bm-auth-field input.bm-list-field,
.bm-auth-page .bm-auth-field select.bm-list-field {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px 42px 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  font-size: 14px;
  line-height: 1.4;
  box-sizing: border-box;
}

.bm-auth-page .bm-auth-field .bm-list-field:focus,
.bm-auth-page .bm-auth-field input.bm-list-field:focus {
  outline: none;
  border-color: #591cd3;
  box-shadow: 0 0 0 3px rgba(89, 28, 211, 0.15);
}

.bm-auth-page .bm-input-feedback {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
  line-height: 1;
}

.bm-auth-page .has-error .bm-list-field {
  border-color: #dc2626;
}

.bm-auth-page .help-block {
  display: block;
  margin-top: 6px;
  color: #dc2626;
  font-size: 12px;
}

.bm-auth-page .bm-auth-field .checkbox {
  margin: 0;
}

.bm-auth-page .bm-auth-field .checkbox label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  cursor: pointer;
}

.bm-auth-page .bm-auth-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.bm-auth-page .bm-auth-actions .bm-btn-login {
  flex: 0 0 auto;
}

.bm-auth-page .bm-auth-actions a {
  color: #591cd3;
  font-weight: 600;
  text-decoration: none;
}

.bm-auth-page .bm-auth-actions a:hover {
  text-decoration: underline;
}

/* Buttons */
.bm-auth-page .bm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
}

.bm-auth-page .bm-btn:hover {
  background: #f8fafc;
  color: #0f172a;
  text-decoration: none;
}

.bm-auth-page .bm-btn-primary,
.bm-auth-page .btn-primary {
  border-color: #591cd3;
  background: #591cd3;
  color: #fff;
}

.bm-auth-page .bm-btn-primary:hover,
.bm-auth-page .btn-primary:hover {
  background: #4a17b0;
  border-color: #4a17b0;
  color: #fff;
}

.bm-auth-page .btn-login {
  padding: 8px 36px !important;
}

.bm-auth-page .btn-block {
  display: block;
  width: 100%;
}

.bm-auth-page .btn-flat,
.bm-auth-page .bm-btn-flat {
  border-radius: 8px;
}

.bm-auth-page .bm-btn-app,
.bm-auth-page .btn-app {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  min-height: 72px;
  margin: 4px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.bm-auth-page .bm-btn-app i,
.bm-auth-page .btn-app i {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
}

.bm-auth-page .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.bm-auth-page .bg-olive { background-color: #3d9970; }
.bm-auth-page .bg-maroon { background-color: #d81b60; }
.bm-auth-page .bg-orange { background-color: #ff851b; }
.bm-auth-page .bg-purple { background-color: #605ca8; }
.bm-auth-page .bg-navy { background-color: #001f3f; }
.bm-auth-page .bg-red { background-color: #dd4b39; }
.bm-auth-page .bg-red-active { background-color: #c23321; }
.bm-auth-page .bg-woocommerce { background-color: #96588a; }

.bm-auth-page .box,
.bm-auth-page .box-primary {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  padding: 16px;
  margin-top: 16px;
  width: 100%;
}

.bm-auth-page .box .box-header,
.bm-auth-page .box-primary h4 {
  margin: 0 0 12px;
  text-align: center;
}

.bm-auth-page .box hr {
  margin: 16px 0;
  border: 0;
  border-top: 1px solid #e2e8f0;
}

/* Legacy form-control shim (register partials) */
.bm-auth-page .form-control {
  display: block;
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: #0f172a;
  font-size: 14px;
  line-height: 1.4;
  box-sizing: border-box;
}

.bm-auth-page .form-control:focus {
  outline: none;
  border-color: #591cd3;
  box-shadow: 0 0 0 3px rgba(89, 28, 211, 0.15);
}

@media (max-width: 992px) {
  .bm-auth-page .wrap-login100 {
    padding: 56px 40px;
  }
}

@media (max-width: 768px) {
  .bm-auth-page .bm-auth-topbar-links {
    text-align: center;
  }

  .bm-auth-page .wrap-login100 {
    flex-direction: column;
    align-items: stretch;
    max-width: 480px;
    padding: 32px 24px;
  }

  .bm-auth-page .wrap-login100 > .bm-auth-form-column {
    flex: 0 0 auto;
    width: 100%;
  }

  .bm-auth-page .login50-pic {
    width: auto;
    max-width: 180px;
    height: auto;
  }

  .bm-auth-page .login100-form-title {
    font-size: 20px;
    padding-bottom: 0;
    margin: 12px 0 20px;
  }

  .bm-auth-page .login-form {
    max-width: 100%;
  }
}

@media (max-width: 576px) {
  .bm-auth-page .container-login100 {
    justify-content: flex-start;
    padding: 12px;
  }

  .bm-auth-page .bm-auth-topbar {
    padding: 0;
  }

  .bm-auth-page .bm-auth-topbar-row {
    justify-content: center;
    gap: 8px;
  }

  .bm-auth-page .bm-auth-topbar-lang,
  .bm-auth-page .bm-auth-topbar-links {
    flex: 1 1 100%;
    text-align: center;
  }

  .bm-auth-page .bm-auth-lang-select {
    margin: 0 auto;
  }

  .bm-auth-page .bm-auth-register-link {
    white-space: normal;
    text-align: center;
  }

  .bm-auth-page .wrap-login100 {
    padding: 24px 16px;
  }

  .bm-auth-page .bm-auth-actions {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .bm-auth-page .bm-auth-actions .btn-login {
    width: 100%;
  }
}
