main {
  position: relative;
  width: 100%;
}

.MainTitle {
  position: relative;
  width: 100%;
  min-height: 140px;
  padding: 10px 0;
  background: linear-gradient(to bottom, var(--oos-accent, #BF901C), rgba(58, 58, 58, 0));
  overflow: hidden;
}

.MainTitleText {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
  color: var(--oos-accent, #BF901C);
  text-align: center;
  font-size: clamp(1.8rem, 7vw, 3rem);
  text-shadow: 4px 4px 10px black;
  z-index: 1;
}

.MainTitleImage img {
  position: absolute;
  top: 8px;
  left: 50%;
  height: min(130px, 24vw);
  transform: translate(-50%, 0);
  opacity: 0.3;
  z-index: 0;
}

nav {
  position: relative;
  width: min(92vw, 360px);
  margin: clamp(24px, 8vh, 100px) auto 0;
  border: 2px solid var(--oos-accent, #BF901C);
  border-radius: 15px;
  box-shadow: 2px 2px 5px var(--oos-shadow, black);
  font-family: "Roya";
  font-size: 18px;
  direction: rtl;
  overflow: hidden;
  background-color: var(--oos-surface, transparent);
}

nav form {
  display: flex;
  flex-direction: column;
}

.LoginBox {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 8px 10px;
  background-color: inherit;
  border: none;
  border-bottom: 1px solid var(--oos-accent, #BF901C);
  font-family: "Roya";
  font-size: 20px;
  line-height: 1.5;
  text-align: center;
  color: var(--oos-text, white);
  direction: ltr;
}

.LoginBox::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.LoginBox:focus {
  outline: none;
  background-color: rgba(255, 255, 255, 0.04);
}

.LoginSubmit {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 8px 10px;
  background-color: var(--oos-accent, #BF901C);
  border: none;
  font-family: "Roya";
  font-size: 20px;
  line-height: 1.5;
  color: var(--oos-text, white);
  cursor: pointer;
}

.LoginSubmit:hover {
  background-color: var(--oos-accent-strong, #a77e18);
}

.BrandBox {
  position: relative;
  width: min(92vw, 320px);
  min-height: 52px;
  margin: 12px auto 8px;
  padding: 8px 10px;
  background-color: var(--oos-accent, #BF901C);
  border: 1px solid var(--oos-accent, #BF901C);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: "Roya";
  font-size: 20px;
  line-height: 1.4;
  color: var(--oos-text, white);
  overflow: hidden;
}

.BranchBox {
  position: relative;
  width: min(88vw, 320px);
  min-height: 52px;
  margin: 8px auto;
  padding: 8px 10px;
  background-color: inherit;
  border: 1px solid var(--oos-accent, #BF901C);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: "Roya";
  font-size: 19px;
  line-height: 1.4;
  color: var(--oos-text, white);
  cursor: pointer;
  overflow: hidden;
}

.BranchBox:hover {
  background-color: var(--oos-accent-soft, rgba(191, 144, 28, 0.15));
}

@media (max-width: 767.98px) {
  .MainTitle {
    min-height: 120px;
  }

  nav {
    margin-top: 30px;
  }

  .LoginBox,
  .LoginSubmit {
    min-height: 50px;
    font-size: 18px;
  }

  .BrandBox {
    font-size: 18px;
  }

  .BranchBox {
    font-size: 17px;
  }
}

@media (max-width: 479.98px) {
  nav {
    width: 94vw;
  }

  .LoginBox,
  .LoginSubmit {
    font-size: 17px;
  }
}
