.restovio-login-body,
.restovio-panel-body {
  margin: 0;
  background: #fbfaf5;
  color: #18201f;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.rv-login-page {
  min-height: 100vh;
  display: grid;
  align-content: center;
  gap: 26px;
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
}

.rv-login-brand {
  width: fit-content;
  color: #18201f;
  text-decoration: none;
  font-size: 26px;
  font-weight: 900;
}

.rv-login-card,
.rv-account-card {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(340px, .8fr);
  overflow: hidden;
  border: 1px solid rgba(24, 32, 31, .1);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(24, 32, 31, .14);
}

.rv-login-copy {
  min-height: 540px;
  padding: 52px;
  display: grid;
  align-content: center;
  gap: 18px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(24, 32, 31, .94), rgba(31, 138, 132, .84)),
    #18201f;
}

.rv-login-copy span {
  width: fit-content;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: #b9dfcf;
  background: rgba(255, 255, 255, .1);
  font-size: 13px;
  font-weight: 850;
}

.rv-login-copy h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 72px);
  line-height: .94;
}

.rv-login-copy p {
  margin: 0;
  max-width: 580px;
  color: rgba(255, 255, 255, .74);
  font-size: 18px;
  line-height: 1.65;
}

.rv-login-form {
  padding: 42px;
  display: grid;
  align-content: center;
  gap: 16px;
}

.rv-login-form label {
  display: grid;
  gap: 8px;
  color: #18201f;
  font-size: 13px;
  font-weight: 850;
}

.rv-login-form input[type="text"],
.rv-login-form input[type="password"] {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(24, 32, 31, .14);
  border-radius: 12px;
  padding: 0 14px;
  color: #18201f;
  font: inherit;
  outline: none;
}

.rv-login-form input:focus {
  border-color: #1f8a84;
  box-shadow: 0 0 0 4px rgba(31, 138, 132, .12);
}

.rv-login-remember {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
}

.rv-login-form button {
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: #e46d4f;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(228, 109, 79, .24);
}

.rv-login-form a {
  color: #1f8a84;
  text-decoration: none;
  font-weight: 800;
}

.rv-login-error {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  color: #7d2c1c;
  background: rgba(228, 109, 79, .14);
  font-weight: 800;
}

.rv-login-error.success {
  color: #17483c;
  background: rgba(185, 223, 207, .7);
}

.rv-panel-shell {
  min-height: 100vh;
  background: #f7f8fc;
}

.rv-panel-topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: 64px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: #ffffff;
  border-bottom: 1px solid #e6eaf2;
}

.rv-panel-topbar a {
  color: #18201f;
  text-decoration: none;
  font-weight: 900;
}

.rv-panel-topbar nav {
  display: flex;
  gap: 14px;
}

.rv-panel-topbar nav a {
  color: #64708a;
  font-size: 14px;
}

.rv-panel-root .qrm-admin-shell,
#qrm-admin-root .qrm-admin-shell {
  min-height: calc(100vh - 64px);
}

.rv-panel-message {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 90px 0;
}

.rv-panel-message h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1;
}

.rv-panel-message p {
  margin: 0;
  color: #64708a;
  font-size: 18px;
  line-height: 1.65;
}

@media (max-width: 760px) {
  .rv-login-card {
    grid-template-columns: 1fr;
  }

  .rv-login-copy {
    min-height: auto;
    padding: 32px 24px;
  }

  .rv-login-form {
    padding: 28px 22px;
  }

  .rv-panel-topbar {
    align-items: start;
    flex-direction: column;
    padding: 14px 16px;
  }
}
