.rst-cameras-login {
  width: min(100% - 32px, 520px);
  margin: clamp(40px, 8vw, 88px) auto;
  color: #171717;
  font-family: inherit;
}

.rst-cameras-login__inner {
  padding: clamp(26px, 5vw, 46px);
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
}

.rst-cameras-login__title {
  margin: 0 0 8px;
  color: #171717;
  font-size: clamp(25px, 4vw, 32px);
  font-weight: 600;
  line-height: 1.2;
}

.rst-cameras-login__intro {
  margin: 0 0 28px;
  color: #555;
  font-size: 15px;
  line-height: 1.55;
}

.rst-cameras-login__form {
  display: grid;
  gap: 10px;
}

.rst-cameras-login__form label {
  margin-top: 8px;
  color: #252525;
  font-size: 14px;
  font-weight: 500;
}

.rst-cameras-login__form input {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  color: #171717;
  background: #fff;
  border: 1px solid #b9b9b9;
  border-radius: 3px;
  font: inherit;
  font-size: 16px;
}

.rst-cameras-login__form input:focus-visible,
.rst-cameras-login__form button.rst-cameras-login__submit:focus-visible,
.rst-cameras-login__link:focus-visible {
  outline: 3px solid #111;
  outline-offset: 3px;
}

.rst-cameras-login__form button.rst-cameras-login__submit {
  min-height: 48px;
  margin-top: 14px;
  padding: 12px 18px;
  color: #fff;
  background: #111;
  border: 0;
  border-radius: 3px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 150ms ease, opacity 150ms ease;
}

.rst-cameras-login__form button.rst-cameras-login__submit:hover {
  background: #292929;
}

.rst-cameras-login__form button.rst-cameras-login__submit:disabled {
  opacity: .65;
  cursor: wait;
}

.rst-cameras-login__status {
  margin: 4px 0 0;
  color: #555;
  font-size: 14px;
  line-height: 1.5;
}

.rst-cameras-login__status.is-error {
  color: #b42318;
}

.rst-cameras-login__status.is-success {
  color: #237344;
}

.rst-cameras-login__status[hidden],
.rst-cameras-login__state[hidden] {
  display: none !important;
}

.rst-cameras-login__link {
  display: inline-block;
  margin-top: 18px;
  padding: 0;
  color: #111;
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rst-cameras-login__link:hover {
  color: #333;
}

@media (max-width: 480px) {
  .rst-cameras-login {
    width: min(100% - 24px, 520px);
    margin: 32px auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rst-cameras-login__form button.rst-cameras-login__submit {
    transition: none;
  }
}

/* Reuse the camera-login card styling on the existing /login form only. */
body.page-id-210 #content .section-content > .row.align-center {
  display: block;
}

body.page-id-210 #content .section-content > .row.align-center > .col:has(#loginForm) {
  width: 100%;
  max-width: 100%;
  flex: 0 0 100%;
}

body.page-id-210 #content .section-content > .row.align-center > .col:has(#loginForm) > .col-inner > div:has(> #loginForm) {
  box-sizing: border-box;
  width: min(100% - 32px, 520px);
  margin: clamp(40px, 8vw, 88px) auto;
  padding: clamp(26px, 5vw, 46px);
  color: #171717;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
}

body.page-id-210 #content .section-content > .row.align-center > .col:has(#loginForm) > .col-inner > div:has(> #loginForm) > div:first-child {
  margin: 0 0 8px;
  color: #171717;
  font-size: clamp(25px, 4vw, 32px);
  font-weight: 600;
  line-height: 1.2;
}

body.page-id-210 #loginForm {
  display: grid;
  gap: 10px;
}

body.page-id-210 #loginForm br {
  display: none;
}

body.page-id-210 #loginForm label {
  margin-top: 8px;
  color: #252525;
  font-size: 14px;
  font-weight: 500;
}

body.page-id-210 #loginForm input[type="text"],
body.page-id-210 #loginForm input[type="password"] {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 11px 13px;
  color: #171717;
  background: #fff;
  border: 1px solid #b9b9b9;
  border-radius: 3px;
  font: inherit;
  font-size: 16px;
}

body.page-id-210 #loginForm input[type="text"]:focus-visible,
body.page-id-210 #loginForm input[type="password"]:focus-visible,
body.page-id-210 #loginForm input[type="submit"]:focus-visible {
  outline: 3px solid #ed1c24;
  outline-offset: 3px;
}

body.page-id-210 #loginForm input[type="submit"] {
  min-height: 48px;
  margin: 14px 0 0;
  padding: 12px 18px;
  color: #fff;
  background: #ed1c24;
  border: 0;
  border-radius: 3px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 150ms ease, opacity 150ms ease;
}

body.page-id-210 #loginForm input[type="submit"]:hover {
  background: #c9161d;
}

body.page-id-210 #loginForm + p {
  margin: 18px 0 0;
}

body.page-id-210 #loginForm + p a {
  color: #111;
  font-size: 14px;
  text-underline-offset: 3px;
}

body.page-id-210 #loginMessage {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.5;
}

body.page-id-210 #loginMessage .error {
  color: #b42318;
}

body.page-id-210 #loginMessage .success {
  color: #237344;
}

@media (max-width: 480px) {
  body.page-id-210 #content .section-content > .row.align-center > .col:has(#loginForm) > .col-inner > div:has(> #loginForm) {
    width: min(100% - 24px, 520px);
    margin: 32px auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-id-210 #loginForm input[type="submit"] {
    transition: none;
  }
}

/* Keep the existing password-recovery form and its behavior; style only its page. */
body.page-id-213 #content .section-content > .row.align-center {
  display: block;
}

body.page-id-213 #content .section-content > .row.align-center > .col:has(#recoverPasswordForm) {
  width: 100%;
  max-width: 100%;
  flex: 0 0 100%;
}

body.page-id-213 #content .section-content > .row.align-center > .col:has(#recoverPasswordForm) > .col-inner > div:has(> #recoverPasswordForm) {
  box-sizing: border-box;
  width: min(100% - 32px, 520px);
  margin: clamp(40px, 8vw, 88px) auto;
  padding: clamp(26px, 5vw, 46px);
  color: #171717;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
}

body.page-id-213 #content .section-content > .row.align-center > .col:has(#recoverPasswordForm) > .col-inner > div:has(> #recoverPasswordForm) h1 {
  margin: 0 0 8px;
  color: #171717;
  font-size: clamp(25px, 4vw, 32px);
  font-weight: 600;
  line-height: 1.2;
}

body.page-id-213 #recoverPasswordForm {
  display: grid;
  gap: 10px;
}

body.page-id-213 #recoverPasswordForm br {
  display: none;
}

body.page-id-213 #recoverPasswordForm label {
  margin-top: 8px;
  color: #252525;
  font-size: 14px;
  font-weight: 500;
}

body.page-id-213 #recoverPasswordForm input[type="text"] {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 11px 13px;
  color: #171717;
  background: #fff;
  border: 1px solid #b9b9b9;
  border-radius: 3px;
  font: inherit;
  font-size: 16px;
}

body.page-id-213 #recoverPasswordForm input[type="text"]:focus-visible,
body.page-id-213 #recoverPasswordForm input[type="submit"]:focus-visible {
  outline: 3px solid #ed1c24;
  outline-offset: 3px;
}

body.page-id-213 #recoverPasswordForm input[type="submit"] {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  margin: 14px 0 0;
  padding: 12px 14px;
  color: #fff;
  background: #ed1c24;
  border: 0;
  border-radius: 3px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 150ms ease, opacity 150ms ease;
}

body.page-id-213 #recoverPasswordForm input[type="submit"]:hover {
  background: #c9161d;
}

body.page-id-213 .rst-cameras-recovery-title {
  margin: 0 0 8px;
  color: #555;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}

#header .header-button a.button.alert[href*="/login-cameras/"] {
  color: #fff !important;
  background-color: #111 !important;
  border-color: #111 !important;
}

#header .header-button a.button.alert[href*="/login-cameras/"]:hover,
#header .header-button a.button.alert[href*="/login-cameras/"]:focus-visible {
  color: #fff !important;
  background-color: #292929 !important;
  border-color: #292929 !important;
}

body.page-id-213 #recoverPasswordMessage {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.5;
}

body.page-id-213 #recoverPasswordMessage .error {
  color: #b42318;
}

body.page-id-213 #recoverPasswordMessage .success {
  color: #237344;
}

@media (max-width: 480px) {
  body.page-id-213 #content .section-content > .row.align-center > .col:has(#recoverPasswordForm) > .col-inner > div:has(> #recoverPasswordForm) {
    width: min(100% - 24px, 520px);
    margin: 32px auto;
  }

  body.page-id-213 #recoverPasswordForm input[type="submit"] {
    padding: 12px 8px;
    font-size: clamp(10px, 2.4vw, 14px);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-id-213 #recoverPasswordForm input[type="submit"] {
    transition: none;
  }
}
