.identity-main {
  min-height: calc(100vh - 120px);
  padding: 48px 0 64px;
}

.identity-surface {
  background: #fff;
  border: 1px solid #d9e0e7;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(35, 48, 61, 0.08);
  padding: 32px;
}

.identity-surface h1 {
  font-size: 28px;
  margin: 0 0 20px;
}

.identity-surface h2 {
  font-size: 20px;
}

.identity-surface form > div,
.identity-surface .form-group,
.identity-surface form > p {
  margin-bottom: 18px;
}

.identity-surface label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.identity-surface input[type="checkbox"] + label,
.identity-surface input[type="radio"] + label {
  display: inline;
  font-weight: 400;
  margin-left: 6px;
}

.identity-surface input[type="text"],
.identity-surface input[type="email"],
.identity-surface input[type="password"],
.identity-surface input[type="number"],
.identity-surface textarea,
.identity-surface select {
  display: block;
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #b8c3ce;
  border-radius: 3px;
}

.identity-surface button,
.identity-surface a[role="button"] {
  margin: 4px 8px 4px 0;
}

.identity-surface form > .btn,
.identity-surface form > button,
.identity-actions .btn {
  margin: 4px 8px 4px 0;
}

.identity-surface p > span {
  color: #667788;
  display: block;
  font-size: 13px;
  margin-top: 6px;
}

.identity-surface .errorlist {
  color: #a94442;
  list-style: none;
  margin: 6px 0;
  padding: 0;
}

.identity-surface img[src^="data:image/svg+xml"] {
  display: block;
  width: min(100%, 280px);
  height: auto;
  margin: 24px auto;
}

.identity-surface textarea[readonly] {
  min-height: 220px;
  overflow-wrap: anywhere;
  resize: vertical;
}

.identity-surface #authenticator_secret {
  overflow-wrap: anywhere;
}

.identity-surface .g-recaptcha {
  max-width: 100%;
  overflow: hidden;
}

.identity-panel {
  margin: 24px 0 0;
}

.identity-panel .panel-title {
  font-size: 18px;
  margin: 0;
}

.identity-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.identity-actions .btn {
  margin: 0;
}

@media (max-width: 767px) {
.identity-main {
    padding: 24px 0 40px;
  }

.identity-surface {
    padding: 22px 18px;
  }

.identity-surface h1 {
    font-size: 24px;
  }
}

body.reims-auth-page,
html.msgapi body.reims-auth-page {
  background: #fff;
  color: #111111;
  display: flex;
  flex-direction: column;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  margin: 0;
  min-height: 100vh;
  padding: 0;
}

body.reims-auth-page #wrap {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  margin: 0;
  padding: 0;
}

body.reims-auth-page .reims-auth-header {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #d9dee7;
  display: flex;
  justify-content: space-between;
  padding: 14px 24px;
}

body.reims-auth-page .reims-auth-brand {
  align-items: center;
  color: inherit;
  display: inline-flex;
  gap: 12px;
  text-decoration: none;
}

.reims-auth-brand:hover,
body.reims-auth-page .reims-auth-brand:focus {
  color: inherit;
  text-decoration: none;
}

body.reims-auth-page .reims-auth-brand img {
  height: 38px;
  object-fit: contain;
  width: 38px;
}

body.reims-auth-page .reims-auth-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0;
}

body.reims-auth-page .reims-auth-agency {
  color: #6b7280;
  font-size: 10px;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

body.reims-auth-page .reims-auth-brand-name {
  color: #1a56c4;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
}

body.reims-auth-page .reims-auth-header > p {
  color: #6b7280;
  font-size: 12px;
  margin: 0;
}

body.reims-auth-page .reims-auth-main {
  box-sizing: border-box;
  flex: 1 0 auto;
  min-height: 0;
  padding: 48px 24px;
}

body.reims-auth-page .reims-auth-content {
  margin: 0 auto;
  max-width: 1120px;
}

body.reims-auth-page .reims-auth-notices:empty {
  display: none;
}

body.reims-auth-page .reims-auth-notices > * {
  margin: 0 auto 16px;
  max-width: 1120px;
}

body.reims-auth-page .reims-auth-footer {
  color: #9aa4b2;
  flex: 0 0 auto;
  font-size: 11px;
  padding: 16px 24px;
  text-align: center;
}

body.reims-auth-page .reims-login-layout {
  background: #fff;
  border: 1px solid #d9dee7;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(14, 24, 48, 0.06);
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(340px, 1fr);
  margin: 0 auto;
  max-width: 960px;
  min-height: 570px;
  overflow: hidden;
}

body.reims-auth-page .reims-login-visual {
  background: #16213e;
  min-height: 570px;
  overflow: hidden;
  position: relative;
}

body.reims-auth-page .reims-login-visual::after {
  background: linear-gradient(180deg, rgba(14, 24, 48, 0) 40%, rgba(14, 24, 48, 0.75) 100%);
  content: "";
  inset: 0;
  position: absolute;
}

body.reims-auth-page .reims-login-visual > img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  object-position: center;
  position: absolute;
  width: 100%;
}

body.reims-auth-page .reims-login-visual-copy {
  bottom: 0;
  color: #fff;
  left: 0;
  padding: 24px;
  position: absolute;
  right: 0;
  z-index: 1;
}

body.reims-auth-page .reims-login-visual-copy h1 {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0;
  max-width: 420px;
}

body.reims-auth-page .reims-login-visual-copy > p {
  font-size: 13px;
  line-height: 1.5;
  margin: 8px 0 0;
  max-width: 420px;
  opacity: 0.85;
}

body.reims-auth-page .reims-login-error-box {
  background: #fdecea;
  border: 1px solid #f2b8b5;
  border-radius: 5px;
  color: #8a2b21;
  font-size: 12px;
  margin: 0;
  padding: 10px;
}

body.reims-auth-page .reims-login-error-box ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.reims-auth-page .reims-login-error-box ul li {
  margin: 2px 0;
}

body.reims-auth-page .reims-login-field .errorlist {
  color: #c0392b;
  font-size: 12px;
  list-style: none;
  margin: -2px 0 0;
  padding: 0;
}

body.reims-auth-page .reims-login-field .errorlist li {
  margin: 2px 0;
}

body.reims-auth-page .reims-login-credit {
  background: rgba(14, 24, 48, 0.55);
  bottom: 0;
  color: #c9d2de;
  font-size: 11px;
  left: 0;
  margin: 0;
  padding: 6px 10px;
  position: absolute;
  z-index: 2;
}

body.reims-auth-page .reims-login-panel {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 36px;
}

body.reims-auth-page .reims-login-panel h2 {
  color: #111111;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 6px;
}

body.reims-auth-page .reims-login-intro {
  color: #6b7280;
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 28px;
}

body.reims-auth-page .reims-login-panel form {
  margin: 0;
}

body.reims-auth-page .reims-login-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

body.reims-auth-page .reims-login-field > label {
  color: #111111;
  font-size: 13px;
  font-weight: 600;
}

.reims-login-panel input[type="text"],
.reims-login-panel input[type="email"],
body.reims-auth-page .reims-login-panel input[type="password"] {
  background: #fff;
  border: 1px solid #d9dee7;
  border-radius: 5px;
  box-shadow: none;
  box-sizing: border-box;
  color: #111111;
  display: block;
  font-family: inherit;
  font-size: 14px;
  height: 40px;
  line-height: normal;
  padding: 0 12px;
  width: 100%;
}

body.reims-auth-page .reims-login-panel input:focus {
  background: #fff;
  border-color: #2f6fd6;
  box-shadow: 0 0 0 3px #e6f0fb;
  outline: 0;
}

.reims-login-panel .form-text,
body.reims-auth-page .reims-login-panel .p-1 {
  font-size: 12px;
}

body.reims-auth-page .reims-login-row {
  align-items: center;
  display: flex;
  font-size: 13px;
  justify-content: space-between;
  margin: 0 0 16px;
}

body.reims-auth-page .reims-login-remember {
  align-items: center;
  color: #6b7280;
  cursor: pointer;
  display: inline-flex;
  font-size: 13px;
  font-weight: 400;
  gap: 6px;
}

body.reims-auth-page .reims-login-remember input[type="checkbox"] {
  accent-color: #1a56c4;
  height: 16px;
  margin: 0;
  width: 16px;
}

body.reims-auth-page .reims-login-forgot {
  color: #1a56c4;
  font-size: 13px;
}

body.reims-auth-page .reims-login-forgot:hover {
  color: #0f3d91;
}

body.reims-auth-page .reims-login-submit {
  background: #f5a623;
  border: none;
  border-radius: 5px;
  color: #16213e;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  height: 42px;
  padding: 0;
  transition: background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
  width: 100%;
}

.reims-login-submit:hover,
body.reims-auth-page .reims-login-submit:focus {
  background: #e0851a;
}

body.reims-auth-page .reims-login-submit:disabled {
  background: #d9dee7;
  color: #9aa4b2;
}

body.reims-auth-page .reims-login-request {
  color: #6b7280;
  font-size: 13px;
  margin: 8px 0 0;
  text-align: center;
}

body.reims-auth-page .reims-login-request a {
  color: #1a56c4;
}

body.reims-auth-page .reims-auth-header-note p {
  color: #6b7280;
  font-size: 12px;
  margin: 0;
}

body.reims-auth-page .reims-auth-header-note a {
  color: #1a56c4;
  font-weight: 600;
}

body.reims-auth-page .reims-auth-header-note-signup p {
  font-size: 13px;
}

body.reims-auth-page .reims-auth-header-note-signup a {
  font-weight: 400;
}

body.reims-auth-page .reims-register-layout {
  background: #fff;
  border: 1px solid #d9dee7;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(14, 24, 48, 0.06);
  margin: 0 auto;
  max-width: 760px;
  overflow: hidden;
}

body.reims-register-page .reims-auth-main {
  padding: 40px 24px;
}

body.reims-auth-page .reims-register-banner {
  background: #16213e;
  height: 180px;
  overflow: hidden;
  position: relative;
}

body.reims-auth-page .reims-register-banner img {
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  width: 100%;
}

body.reims-auth-page .reims-register-credit {
  background: rgba(14, 24, 48, 0.55);
  bottom: 0;
  color: #c9d2de;
  font-size: 11px;
  left: 0;
  margin: 0;
  padding: 4px 10px;
  position: absolute;
}

body.reims-auth-page .reims-register-panel {
  padding: 32px;
}

body.reims-auth-page .reims-register-panel h1 {
  color: #111111;
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 4px;
}

body.reims-auth-page .reims-register-intro {
  color: #6b7280;
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 28px;
}

body.reims-auth-page .reims-register-group {
  margin: 0 0 24px;
}

body.reims-auth-page .reims-register-group h2 {
  color: #111111;
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 12px;
}

body.reims-auth-page .reims-register-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.reims-register-grid label,
body.reims-auth-page .reims-register-purpose {
  color: #111111;
  display: flex;
  flex-direction: column;
  font-size: 13px;
  font-weight: 600;
  gap: 6px;
  width: 100%;
}

.reims-register-grid input,
.reims-register-grid select,
body.reims-auth-page .reims-register-panel textarea {
  background: #fff;
  border: 1px solid #d9dee7;
  border-radius: 5px;
  box-sizing: border-box;
  color: #111111;
  font-family: inherit;
  font-size: 14px;
  height: 40px;
  padding: 0 12px;
  width: 100%;
}

body.reims-auth-page .reims-register-grid select {
  font-size: 13px;
  padding: 0 10px;
}

body.reims-auth-page .reims-register-panel textarea {
  display: block;
  font-size: 13px;
  height: auto;
  min-height: 74px;
  padding: 10px;
  resize: vertical;
}

.reims-register-grid input:focus,
.reims-register-grid select:focus,
body.reims-auth-page .reims-register-panel textarea:focus {
  background: #fff;
  border-color: #2f6fd6;
  box-shadow: 0 0 0 3px #e6f0fb;
  outline: 0;
}

body.reims-auth-page .reims-register-consent {
  align-items: flex-start;
  color: #6b7280;
  display: flex;
  font-size: 12px;
  font-weight: 400;
  gap: 8px;
  line-height: 1.5;
  margin: 0 0 20px;
}

body.reims-auth-page .reims-register-consent input {
  accent-color: #1a56c4;
  flex: 0 0 auto;
  margin: 2px 0 0;
}

body.reims-auth-page .reims-register-unavailable {
  background: #fff8d6;
  border-left: 3px solid #f5a623;
  color: #6b7280;
  font-size: 12px;
  margin: 0 0 12px;
  padding: 10px 12px;
}

body.reims-auth-page .reims-register-submit {
  background: #f5a623;
  border: none;
  border-radius: 5px;
  color: #16213e;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  height: 42px;
  width: 100%;
}

body.reims-auth-page .reims-register-submit:hover {
  background: #e0851a;
}

body.reims-auth-page .reims-register-submit:disabled {
  background: #d9dee7;
  color: #9aa4b2;
  cursor: not-allowed;
}

body.reims-reset-page .reims-auth-main {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 24px;
}

body.reims-auth-page .reims-reset-card {
  background: #fff;
  border: 1px solid #d9dee7;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(14, 24, 48, 0.06);
  box-sizing: border-box;
  margin: 0 auto;
  max-width: 440px;
  padding: 36px;
  width: 100%;
}

body.reims-auth-page .reims-reset-title {
  color: #111111;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 6px;
}

body.reims-auth-page .reims-reset-intro {
  color: #6b7280;
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 24px;
}

body.reims-auth-page .reims-reset-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

body.reims-auth-page .reims-reset-field > label {
  color: #111111;
  font-size: 13px;
  font-weight: 600;
}

body.reims-auth-page .reims-reset-field input[type="email"],
body.reims-auth-page .reims-reset-field input[type="password"],
body.reims-auth-page .reims-reset-field input[type="text"] {
  background: #fff;
  border: 1px solid #d9dee7;
  border-radius: 5px;
  box-sizing: border-box;
  color: #111111;
  font-family: inherit;
  font-size: 14px;
  height: 40px;
  padding: 0 12px;
  width: 100%;
}

body.reims-auth-page .reims-reset-field input:focus {
  border-color: #2f6fd6;
  box-shadow: 0 0 0 3px #e6f0fb;
  outline: 0;
}

body.reims-auth-page .reims-reset-field .errorlist {
  color: #c0392b;
  font-size: 12px;
  list-style: none;
  margin: -2px 0 0;
  padding: 0;
}

body.reims-auth-page .reims-reset-hint {
  color: #9aa4b2;
  font-size: 11px;
  line-height: 1.5;
  margin: -8px 0 16px;
}

body.reims-auth-page .reims-reset-submit {
  align-items: center;
  background: #f5a623;
  border: none;
  border-radius: 5px;
  box-sizing: border-box;
  color: #16213e;
  cursor: pointer;
  display: flex;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  height: 42px;
  justify-content: center;
  text-decoration: none;
  width: 100%;
}

body.reims-auth-page .reims-reset-submit:hover,
body.reims-auth-page .reims-reset-submit:focus {
  background: #e0851a;
  color: #16213e;
  text-decoration: none;
}

body.reims-auth-page .reims-reset-card-center {
  text-align: center;
}

body.reims-auth-page .reims-reset-icon {
  align-items: center;
  background: #e6f0fb;
  border-radius: 50%;
  color: #0f3d91;
  display: flex;
  font-size: 24px;
  height: 56px;
  justify-content: center;
  margin: 0 auto 16px;
  width: 56px;
}

body.reims-auth-page .reims-reset-icon-success {
  background: #eaf6ee;
  color: #1e6b3a;
}

body.reims-auth-page .reims-reset-title-center {
  font-size: 20px;
  text-align: center;
}

body.reims-auth-page .reims-reset-intro-center {
  text-align: center;
}

@media (max-width: 767px) {
body.reims-auth-page .reims-auth-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 12px 18px;
  }

body.reims-auth-page .reims-auth-header > p {
    margin-left: 54px;
  }

body.reims-auth-page .reims-auth-main {
    min-height: calc(100vh - 150px);
    padding: 20px 14px;
  }

body.reims-auth-page .reims-login-layout {
    grid-template-columns: minmax(0, 1fr);
    margin: 0 auto;
    min-height: auto;
  }

body.reims-auth-page .reims-login-visual {
    display: none;
  }

body.reims-auth-page .reims-login-panel {
    padding: 30px 22px;
  }

body.reims-auth-page .reims-register-banner {
    height: 120px;
  }

body.reims-auth-page .reims-register-panel {
    padding: 24px 18px;
  }

body.reims-auth-page .reims-reset-card {
    padding: 28px 22px;
  }

body.reims-auth-page .reims-register-grid {
    gap: 14px;
    grid-template-columns: minmax(0, 1fr);
  }
}