body.login-screen {
  background: #faf8f9;
  overflow: auto;
}

body.login-screen > .topbar,
body.login-screen > footer,
body.login-screen > .admin-drawer,
body.login-screen > .drawer-backdrop {
  display: none !important;
}

body.login-screen main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

#login-view.login-layout {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 100vh;
  min-height: 100svh;
  padding: max(30px, env(safe-area-inset-top)) 24px max(20px, env(safe-area-inset-bottom));
  overflow: hidden;
  background: radial-gradient(ellipse at 0 0, #f7e9ed 0, transparent 45%),
    radial-gradient(ellipse at 100% 70%, #f5f1f5 0, transparent 50%), #fcfafb;
}

.login-route {
  position: absolute;
  z-index: -1;
  top: -20px;
  left: 50%;
  width: max(600px, 100%);
  height: 260px;
  transform: translateX(-50%);
  color: #cbb5bc;
  opacity: .35;
  pointer-events: none;
}

.login-brand {
  display: block;
  margin-bottom: 32px;
}

.login-brand img {
  display: block;
  width: min(68vw, 280px);
  height: auto;
  object-fit: contain;
}

.login-intro {
  margin-bottom: 26px;
  text-align: center;
}

.login-intro h1 {
  margin: 0 0 10px;
  color: #102a43;
  font-size: clamp(30px, 7.5vw, 40px);
  line-height: 1.15;
  letter-spacing: -1.2px;
}

.login-intro p {
  margin: 0;
  color: #7b808a;
  font-size: 16px;
  line-height: 1.5;
}

#login-form.login-card {
  width: 100%;
  max-width: 440px;
  margin: 0;
  padding: 26px;
  gap: 0;
  border: 1px solid #e1dfe5;
  border-radius: 24px;
  box-shadow: 0 12px 32px #34243509;
  background: #ffffffeb;
}

#login-form h2 {
  margin: 0 0 24px;
  font-size: 26px;
  line-height: 1.2;
}

#login-form label {
  display: block;
  margin: 0 0 8px;
  color: #243b53;
  font-size: 14px;
  font-weight: 600;
}

.login-input-wrap {
  position: relative;
  margin-bottom: 20px;
}

.login-input-wrap > svg {
  position: absolute;
  left: 15px;
  top: 17px;
  width: 21px;
  height: 21px;
  color: #687380;
  pointer-events: none;
}

#login-form .login-input-wrap input {
  height: 56px;
  padding: 14px 48px;
  border: 1px solid #d6d8e1;
  border-radius: 12px;
  background: #fff;
  font-size: 16px;
}

#login-form input::placeholder {
  color: #8d919b;
  opacity: 1;
}

#login-form input:focus {
  border-color: #ba233d;
  box-shadow: 0 0 0 3px #c8102e12;
}

.login-input-wrap svg,
.login-submit svg,
.login-apk svg {
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#login-password-toggle {
  position: absolute;
  right: 3px;
  top: 3px;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #687380;
  cursor: pointer;
}

#login-password-toggle svg {
  width: 22px;
  height: 22px;
}

#login-form .login-submit {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  margin-top: 4px;
  padding: 15px;
  border-radius: 12px;
  background: #c8102e;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
}

.login-submit svg {
  width: 22px;
  height: 22px;
}

#login-form #admin-recovery-open {
  min-height: 48px;
  margin-top: 16px;
  padding: 12px 0;
  color: #263e55;
  font-size: 14px;
  font-weight: 500;
}

#login-form #login-error {
  margin: 0 0 16px;
}

.login-apk {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 440px;
  min-height: 68px;
  margin-top: 20px;
  padding: 16px 20px;
  border: 1px solid #e1dfe5;
  border-radius: 18px;
  box-shadow: 0 8px 24px #34243506;
  background: #ffffffd9;
  color: #102a43;
  text-decoration: none;
}

.login-apk > svg {
  flex: 0 0 23px;
  width: 23px;
  height: 23px;
}

.login-apk span {
  flex: 1;
  min-width: 0;
}

.login-apk strong {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 600;
}

.login-apk small:not(:empty) {
  display: block;
  margin-top: 3px;
  color: #7b808a;
  font-size: 11px;
  line-height: 1.4;
}

.login-signature {
  margin: 24px 0 0;
  color: #96949c;
  font-size: 13px;
}

#login-view a:focus-visible,
#login-view button:focus-visible {
  outline: 3px solid #c8102e55;
  outline-offset: 3px;
}

@media (max-width: 380px) {
  #login-view.login-layout { padding-inline: 16px; }
  #login-form.login-card { padding: 22px; }
  .login-apk { padding-inline: 16px; gap: 10px; }
  .login-apk strong { font-size: 12px; }
}

@media (min-width: 761px) {
  #login-view.login-layout { padding-block: 48px; }
  .login-brand { margin-bottom: 36px; }
}
