@font-face {
  font-family: "Ruwards Impact";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/impact.ttf") format("truetype");
}

/* One file for every weight: Manrope's variable font cut to 400-700 and to
   Latin + Cyrillic (Google Fonts' latin and cyrillic ranges), as woff2.
   Built from google/fonts ofl/manrope/Manrope[wght].ttf v4.505 with
   fontTools: varLib.instancer wght=400:700, then pyftsubset. Licence:
   ../fonts/OFL-Manrope.txt. */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/manrope-variable.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --ruwards-bg: #18181b;
  --ruwards-panel: #27272a;
  --ruwards-divider: #3f3f46;
  --ruwards-field-border: #a1a1aa;
  --ruwards-muted: #a1a1aa;
  --ruwards-placeholder: #71717a;
  --ruwards-text: #f4f4f5;
  --ruwards-warning: #f5a524;
  --ruwards-warning-hover: #f3b13f;
  --ruwards-danger: #f87171;
}

* {
  box-sizing: border-box;
}

html.ruwards-html,
body.ruwards-login-page {
  min-height: 100%;
  background: var(--ruwards-bg);
}

body.ruwards-login-page {
  margin: 0;
  color: var(--ruwards-text);
  font-family: "Manrope", Arial, sans-serif;
  font-size: 16px;
  line-height: 20px;
  text-rendering: geometricPrecision;
}

.ruwards-login-page a {
  color: inherit;
  text-decoration: none;
}

.ruwards-login-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-height: 100vh;
  padding: clamp(40px, 14vh, 155px) 24px 48px;
}

.ruwards-brand {
  margin: 0 0 39px;
  text-align: center;
}

.ruwards-brand-copy {
  width: 361px;
  max-width: calc(100vw - 48px);
  font-size: 0;
}

.ruwards-brand-copy::before {
  content: "RUWARDS";
  display: block;
  color: var(--ruwards-text);
  font-family: "Ruwards Impact", Impact, sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 28px;
  letter-spacing: 0;
  text-align: center;
}

.ruwards-brand-copy::after {
  content: "Играй и зарабатывай";
  display: block;
  margin-top: 16px;
  color: var(--ruwards-text);
  font-family: "Manrope", Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: 0;
  text-align: center;
}

body.ruwards-register-page .ruwards-brand {
  margin-bottom: 23px;
}

.ruwards-card {
  width: 425px;
  max-width: 100%;
  padding: 32px;
  border-radius: 32px;
  background: var(--ruwards-panel);
}

.ruwards-card-header {
  margin: 0 0 16px;
  text-align: center;
}

#kc-page-title {
  margin: 0;
  color: var(--ruwards-text);
  font-family: "Ruwards Impact", Impact, sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 28px;
  letter-spacing: 0;
  text-align: center;
}

.ruwards-register-title-mobile {
  display: none;
}

#kc-content-wrapper {
  display: flex;
  flex-direction: column;
}

.ruwards-login-subtitle {
  margin: 0 0 32px;
  color: var(--ruwards-text);
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
  text-align: center;
}

.ruwards-login-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 0;
}

.ruwards-register-fields {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ruwards-field {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ruwards-label {
  color: var(--ruwards-warning);
  font-size: 14px;
  font-weight: 600;
  line-height: 16px;
}

.ruwards-input {
  appearance: none;
  width: 100%;
  min-height: 44px;
  padding: 8px 16px;
  border: 2px solid var(--ruwards-field-border);
  border-radius: 9999px;
  outline: none;
  background: transparent;
  box-shadow: 0 1px 2px rgb(0 0 0 / 5%);
  color: var(--ruwards-text);
  font-family: "Ruwards Impact", Impact, sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 0;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.ruwards-input::placeholder {
  color: var(--ruwards-placeholder);
  opacity: 1;
}

.ruwards-input:focus {
  border-color: var(--ruwards-warning);
  box-shadow: 0 0 0 3px rgb(245 165 36 / 20%);
}

.ruwards-input[aria-invalid="true"] {
  border-color: var(--ruwards-danger);
}

.ruwards-field-description {
  display: block;
  margin-top: -8px;
  padding: 0 4px 4px;
  color: var(--ruwards-muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 16px;
}

.ruwards-field-error {
  margin-top: -12px;
  color: var(--ruwards-danger);
  font-size: 14px;
  font-weight: 600;
  line-height: 16px;
}

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

.ruwards-checkbox {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 56px;
  padding: 8px;
  color: var(--ruwards-muted);
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
}

.ruwards-checkbox-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.ruwards-checkbox-control {
  position: relative;
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border: 2px solid #d4d4d8;
  border-radius: 9999px;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.ruwards-checkbox-control::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 3px;
  border: solid #000;
  border-width: 0 0 2px 2px;
  opacity: 0;
  transform: translate(-50%, -58%) rotate(-45deg);
  transform-origin: center;
}

.ruwards-checkbox-input:checked + .ruwards-checkbox-control {
  border-color: var(--ruwards-warning);
  background: var(--ruwards-warning);
}

.ruwards-checkbox-input:checked + .ruwards-checkbox-control::after {
  opacity: 1;
}

.ruwards-checkbox-input:focus-visible + .ruwards-checkbox-control {
  box-shadow: 0 0 0 3px rgb(245 165 36 / 28%);
}

.ruwards-checkbox-label {
  min-width: 0;
}

.ruwards-login-page .ruwards-checkbox-link {
  color: #f3b13f;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}

.ruwards-login-page .ruwards-checkbox-link:hover {
  color: #ffd37a;
}

.ruwards-login-page .ruwards-checkbox-link:focus-visible {
  border-radius: 4px;
  outline: 2px solid var(--ruwards-warning);
  outline-offset: 3px;
}

.ruwards-recaptcha {
  display: flex;
  justify-content: center;
  width: 100%;
}

.ruwards-submit-row {
  padding: 12px 0 14px;
}

.ruwards-submit {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 9999px;
  background: var(--ruwards-warning);
  color: #000;
  cursor: pointer;
  font-family: "Ruwards Impact", Impact, sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 0;
  text-align: center;
  transition:
    background-color 160ms ease,
    transform 160ms ease;
}

.ruwards-submit:hover {
  background: var(--ruwards-warning-hover);
}

.ruwards-submit:active {
  transform: translateY(1px);
}

.ruwards-submit:disabled,
.ruwards-submit[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.7;
}

body.ruwards-update-password-page .ruwards-update-password-submit-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.ruwards-update-password-page .ruwards-update-password-cancel {
  border: 2px solid var(--ruwards-divider);
  background: transparent;
  color: var(--ruwards-text);
  font-family: "Manrope", Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
}

body.ruwards-update-password-page .ruwards-update-password-cancel:hover {
  background: var(--ruwards-divider);
}

.ruwards-reset-password {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 16px auto 0;
  color: var(--colors-base-warning, #F5A524);
  font-family: "Manrope", Arial, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 20px;
  text-align: center;
}

.ruwards-reset-password:hover {
  color: var(--ruwards-warning-hover);
}

.ruwards-reset-password:focus-visible {
  border-radius: 4px;
  outline: 2px solid var(--colors-base-warning, #F5A524);
  outline-offset: 4px;
}

body.ruwards-reset-password-page .ruwards-login-shell {
  align-items: center;
  min-height: 100dvh;
  padding: 150px 16px 32px;
}

body.ruwards-reset-password-page .ruwards-brand {
  display: none;
}

body.ruwards-reset-password-page .ruwards-card {
  width: 361px;
  max-width: 100%;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

body.ruwards-reset-password-page .ruwards-card-header {
  margin-bottom: 16px;
}

body.ruwards-reset-password-page .ruwards-reset-subtitle {
  margin-bottom: 32px;
}

.ruwards-reset-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.ruwards-reset-submit-row {
  width: 100%;
}

.ruwards-reset-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  color: var(--colors-base-warning, #F5A524);
  font-family: "Manrope", Arial, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 20px;
  text-align: center;
}

.ruwards-reset-back:hover {
  color: var(--ruwards-warning-hover);
}

.ruwards-reset-back:focus-visible {
  border-radius: 9999px;
  outline: 2px solid var(--colors-base-warning, #F5A524);
  outline-offset: 4px;
}

.ruwards-reset-back-icon {
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.ruwards-reset-back-icon circle {
  fill: currentColor;
}

.ruwards-reset-back-icon path {
  fill: #000;
}

body.ruwards-verify-email-page .ruwards-card-header {
  margin-bottom: 24px;
}

.ruwards-verify-email-copy {
  margin: 0;
  color: var(--ruwards-text);
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
  overflow-wrap: anywhere;
}

.ruwards-verify-email-resend {
  color: var(--ruwards-muted);
}

.ruwards-verify-email-resend a {
  color: var(--ruwards-warning);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}

.ruwards-verify-email-resend a:hover {
  color: var(--ruwards-warning-hover);
}

body.ruwards-verify-email-page #kc-info {
  margin-top: 24px;
}

.ruwards-social {
  margin-top: 32px;
}

.ruwards-social-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 40px;
}

.ruwards-social-divider::before,
.ruwards-social-divider::after {
  content: "";
  display: block;
  flex: 1 1 0;
  height: 1px;
  min-width: 0;
  background: var(--ruwards-divider);
}

.ruwards-social-divider span {
  flex: 0 0 auto;
  color: var(--ruwards-muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 16px;
}

.ruwards-social-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 12px 0;
  list-style: none;
}

.ruwards-social-item {
  flex: 1 1 0;
  min-width: 0;
}

.ruwards-social-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 9999px;
  background: var(--ruwards-divider);
  color: var(--ruwards-text);
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
  white-space: nowrap;
  transition:
    background-color 160ms ease,
    opacity 160ms ease;
}

.ruwards-social-button:hover {
  background: #52525b;
}

.ruwards-social-button-disabled,
.ruwards-social-button[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.65;
}

.ruwards-social-icon {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  object-fit: contain;
}

.ruwards-registration {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  margin-top: 24px;
  color: var(--ruwards-muted);
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
  text-align: center;
}

.ruwards-registration a {
  color: var(--ruwards-warning);
}

.ruwards-registration a:hover {
  color: var(--ruwards-warning-hover);
}

.ruwards-register-login {
  margin-top: 0;
}

.ruwards-alert {
  display: flex;
  gap: 10px;
  margin: 0 0 24px;
  padding: 12px 14px;
  border: 1px solid rgb(248 113 113 / 42%);
  border-radius: 16px;
  background: rgb(248 113 113 / 12%);
  color: #fecaca;
  font-size: 14px;
  font-weight: 600;
  line-height: 18px;
}

.ruwards-alert .pf-c-alert__icon {
  display: none;
}

@media (max-width: 600px) {
  body.ruwards-register-page .ruwards-login-shell {
    align-items: stretch;
    min-height: 100dvh;
    padding: 150px 16px 32px;
  }

  body.ruwards-register-page .ruwards-brand {
    display: none;
  }

  body.ruwards-register-page .ruwards-card {
    width: 100%;
    max-width: none;
    padding: 0;
    border-radius: 0;
    background: transparent;
  }

  body.ruwards-register-page .ruwards-register-title-desktop {
    display: none;
  }

  body.ruwards-register-page .ruwards-register-title-mobile {
    display: inline;
  }

  body.ruwards-register-page .ruwards-checkbox {
    align-items: center;
  }

  body.ruwards-register-page .ruwards-social-list {
    flex-direction: row;
  }

  body.ruwards-register-page .ruwards-social-item {
    flex: 1 1 0;
    width: auto;
  }

  body.ruwards-register-page .ruwards-registration {
    flex-wrap: nowrap;
  }

  body.ruwards-verify-email-page .ruwards-login-shell {
    align-items: stretch;
    min-height: 100dvh;
    padding: 150px 16px 32px;
  }

  body.ruwards-verify-email-page .ruwards-brand {
    display: none;
  }

  body.ruwards-verify-email-page .ruwards-card {
    width: 100%;
    max-width: none;
    padding: 0;
    border-radius: 0;
    background: transparent;
  }

  body.ruwards-verify-email-page .ruwards-card-header {
    margin-bottom: 32px;
  }

  body.ruwards-verify-email-page .ruwards-alert {
    margin-bottom: 32px;
  }
}
