@font-face {
  font-family: 'Russo One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/russo-one-cyrillic.woff2') format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

:root { color-scheme: light; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }

.rim-login-body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 44px 24px;
  color: #171717;
  background: radial-gradient(ellipse at 12% 4%,#fff8cb 0,transparent 45%),#f4f4ef;
  font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif;
  -webkit-text-size-adjust: 100%;
}

.rim-login-shell {
  width: 100%;
  max-width: 1040px;
  min-height: 600px;
  display: grid;
  grid-template-columns: 1.04fr 1fr;
  overflow: hidden;
  border: 1px solid #e2e2d9;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 70px #17171712,0 3px 12px #17171706;
}

.rim-login-intro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 54px 48px;
  color: #fff;
  background: #191a18;
  border-top: 6px solid #ffe000;
}
.rim-login-intro::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: 340px;
  height: 340px;
  right: -150px;
  bottom: -130px;
  border: 58px solid #ffe000;
  border-radius: 50%;
  opacity: .08;
  pointer-events: none;
}
.rim-login-intro h1 { margin: 0; font-weight: 400; }
.rim-login-word {
  display: block;
  color: #ffe000;
  font-family: 'Russo One',Arial,sans-serif;
  font-size: 66px;
  line-height: 1;
  letter-spacing: -.045em;
}
.rim-login-word .brand-test {
  display: block;
  margin-bottom: 12px;
  font: 700 12px/1.2 -apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  letter-spacing: .12em;
}
.rim-login-tagline {
  display: block;
  max-width: 370px;
  margin-top: 38px;
  font-family: 'Russo One',Arial,sans-serif;
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: -.025em;
}
.rim-login-description { max-width: 310px; margin: 22px 0 0; color: #bdbfb7; font-size: 15px; line-height: 1.6; }
.rim-login-features { display: flex; flex-wrap: wrap; gap: 8px; margin: auto 0 0; padding: 44px 0 0; list-style: none; }
.rim-login-features li { padding: 9px 13px; border: 1px solid #ffffff23; border-radius: 99px; color: #dedfd8; background: #ffffff06; font-size: 12px; }

.rim-login-panel { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 54px 48px; }
.rim-login-eyebrow { color: #6a6d62; font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.rim-login-panel h2 { margin: 12px 0 0; font-size: 32px; line-height: 1.2; font-weight: 750; letter-spacing: -.035em; }
.rim-login-panel-head p { margin: 12px 0 0; color: #72756b; font-size: 14px; line-height: 1.55; }
.rim-login-form { display: grid; gap: 22px; margin-top: 32px; }
.rim-login-field { display: grid; gap: 9px; }
.rim-login-field label { font-size: 14px; font-weight: 650; }
.rim-login-field input {
  appearance: none;
  width: 100%;
  min-width: 0;
  height: 56px;
  padding: 0 16px;
  border: 1px solid #dedfd6;
  border-radius: 12px;
  background: #f8f8f5;
  color: #171717;
  font: inherit;
  font-size: 16px;
  transition: border-color .15s,box-shadow .15s,background .15s;
}
.rim-login-field input:hover { border-color: #b9bbae; }
.rim-login-field input:focus { outline: none; border-color: #737666; background: #fff; box-shadow: 0 0 0 4px #ffe00029; }
.rim-login-password { position: relative; }
.rim-login-password input { padding-right: 100px; }
.rim-login-password-toggle {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 80px;
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  color: #626657;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}
.rim-login-password-toggle:hover { color: #171717; background: #eaece1; }
.rim-login-password-toggle:focus-visible,.rim-login-submit:focus-visible { outline: 3px solid #8c7800; outline-offset: 3px; }
.rim-login-submit {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  margin-top: 3px;
  padding: 14px 20px;
  border: 0;
  border-radius: 12px;
  color: #171717;
  background: #ffe000;
  box-shadow: 0 2px 0 #d8bf00;
  font: inherit;
  font-size: 16px;
  font-weight: 750;
  cursor: pointer;
  transition: background .15s,transform .15s;
}
.rim-login-submit:hover { background: #ffea42; }
.rim-login-submit:active { transform: translateY(1px); }
.rim-login-submit:disabled { cursor: wait; }
.rim-login-submit.is-loading .rim-login-submit-arrow { display: none; }
.rim-login-spinner { display: none; width: 18px; height: 18px; border: 2px solid #17171735; border-top-color: #171717; border-radius: 50%; animation: rim-login-spin .7s linear infinite; }
.rim-login-submit.is-loading .rim-login-spinner { display: block; }
.rim-login-error { padding: 12px 14px; border: 1px solid #f1b8bb; border-radius: 10px; background: #fff1f1; color: #a31f29; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.rim-login-help { margin: 28px 0 0; color: #787b70; font-size: 12px; line-height: 1.5; text-align: center; }
.rim-login-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@keyframes rim-login-spin { to { transform: rotate(360deg); } }

@media (min-width: 761px) and (max-width: 1020px) {
  .rim-login-intro { padding: 44px 32px; }
  .rim-login-panel { padding: 44px 32px; }
  .rim-login-tagline { font-size: 32px; }
}

@media (max-width: 760px), (max-height: 600px) and (pointer: coarse) {
  .rim-login-body { padding: 0; background: #fff; }
  .rim-login-shell { max-width: 520px; min-height: 100vh; min-height: 100svh; grid-template-columns: 1fr; grid-template-rows: auto 1fr; border: 0; border-radius: 0; box-shadow: none; }
  .rim-login-intro { padding: calc(28px + env(safe-area-inset-top)) 26px 30px; border-top-width: 5px; }
  .rim-login-word { font-size: 44px; }
  .rim-login-tagline { max-width: 320px; margin-top: 16px; font-size: 25px; line-height: 1.22; }
  .rim-login-description { max-width: 290px; margin-top: 16px; font-size: 13px; line-height: 1.5; }
  .rim-login-features { display: none; }
  .rim-login-intro::after { width: 230px; height: 230px; right: -100px; bottom: -105px; border-width: 38px; }
  .rim-login-panel { justify-content: center; padding: 32px 26px max(28px,env(safe-area-inset-bottom)); }
  .rim-login-panel h2 { margin-top: 10px; font-size: 28px; }
  .rim-login-panel-head p { font-size: 13px; }
  .rim-login-form { margin-top: 26px; gap: 20px; }
  .rim-login-help { margin-top: 26px; }
}

@media (max-width: 350px) {
  .rim-login-intro { padding-left: 22px; padding-right: 22px; }
  .rim-login-panel { padding-left: 22px; padding-right: 22px; }
  .rim-login-tagline { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  .rim-login-field input,.rim-login-submit { transition: none; }
  .rim-login-spinner { animation: none; }
}
