@import url("https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@400;700&display=swap");

:root {
  --rm-navy: #0e3046;
  --rm-navy-light: #183c55;
  --rm-blue: #0753bf;
  --rm-red: #ff1111;
  --rm-black: #020202;
  --rm-gray: #777;
  --rm-white: #fff;
}

* {
  box-sizing: border-box;
}

body.rm-auth-body {
  margin: 0;
  min-height: 100vh;
  font-family: "Roboto Condensed", Arial, sans-serif;
  background: #000;
  color: var(--rm-white);
  overflow-x: hidden;
}

.rm-auth-page {
  min-height: 100vh;
  position: relative;
  display: grid;
  grid-template-columns: 48% 52%;
  background:
    radial-gradient(circle at 72% 44%, rgba(11, 58, 92, 0.55), transparent 28%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.95));
}

.rm-left-photo {
  position: relative;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.75)),
    url("../img/login-lady.png") center bottom / min(100%, 1990px) auto no-repeat;
  min-height: 100vh;
}

.rm-left-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 50%, #000 100%);
}

.rm-brand-mark {
  position: absolute;
  right: 2%;
  top: 4%;
  width: 72%;
  height: 88%;
  opacity: 0.3;
  pointer-events: none;
}

.rm-brand-mark::before,
.rm-brand-mark::after {
  content: "";
  position: absolute;
  border-radius: 18px;
  transform: skew(-24deg);
}

.rm-brand-mark::before {
  width: 150px;
  height: 560px;
  left: 32%;
  top: 12%;
  border: 22px solid rgba(152, 20, 28, 0.65);
}

.rm-brand-mark::after {
  width: 180px;
  height: 640px;
  left: 50%;
  top: 4%;
  border: 24px solid rgba(0, 51, 88, 0.85);
}

.rm-auth-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 70px 80px 40px;
}

.rm-title {
  font-size: clamp(36px, 5vw, 68px);
  line-height: 0.95;
  margin: 0;
  font-weight: 700;
  letter-spacing: -1px;
  text-transform: uppercase;
}

.rm-subtitle {
    margin: 6px 0 28px;
    font-size: 16px;
    color: #e7e7e7;
    text-align: right;
    width: min(560px, 100%);
    padding-right: 8px;
}

.rm-card {
  width: 285px;
  max-width: 100%;
}

.rm-input {
  width: 100%;
  height: 34px;
  border: 0;
  margin-bottom: 8px;
  padding: 8px 10px;
  background: #fff;
  color: #111;
  font-size: 14px;
  outline: none;
}

.rm-password-field {
  position: relative;
  width: 100%;
  margin-bottom: 8px;
}

.rm-password-field .rm-input {
  margin-bottom: 0;
  padding-right: 38px;
}

.rm-password-toggle {
  position: absolute;
  right: 7px;
  top: 50%;
  width: 24px;
  height: 24px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #30445c;
  cursor: pointer;
  opacity: 0.78;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rm-password-toggle:hover,
.rm-password-toggle:focus {
  background: rgba(7, 83, 191, 0.10);
  color: #0753bf;
  opacity: 1;
  outline: none;
}

.rm-password-toggle::before {
  content: "";
  width: 17px;
  height: 17px;
  display: block;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
}

.rm-password-toggle.is-visible::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='m4 4 16 16'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='m4 4 16 16'/%3E%3C/svg%3E");
}

.rm-select {
  width: 100%;
  height: 34px;
  border: 0;
  margin-bottom: 8px;
  padding: 7px 10px;
  background: #fff;
  color: #111;
}

.rm-btn {
  width: 100%;
  height: 34px;
  border: 0;
  display: block;
  text-align: center;
  text-decoration: none;
  margin-bottom: 8px;
  padding: 8px 10px;
  background: var(--rm-blue);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
}

.rm-btn:hover {
  filter: brightness(1.12);
  color: #fff;
}

.rm-link-btn {
  background: #0753bf;
  text-transform: none;
}

.rm-message {
  width: 285px;
  max-width: 100%;
  padding: 9px 10px;
  margin-bottom: 10px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.1);
  border-left: 4px solid var(--rm-blue);
}

.rm-error {
  border-left-color: var(--rm-red);
}
.rm-success {
  border-left-color: #00a859;
}

.rm-footer-strip {
  position: fixed;
  left: auto;
  right: 18px;
  bottom: 12px;
  width: min(620px, calc(100vw - 28px));
  min-height: 34px;
  transform: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: rgba(210, 210, 210, 0.94);
  color: #111;
  z-index: 5;
  font-size: 10px;
  border: 1px solid rgba(0, 0, 0, 0.45);
  border-radius: 2px;
  padding: 6px 10px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

.rm-footer-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.rm-footer-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-size: 10px;
  line-height: 1;
}

@media (max-width: 850px) {
  .rm-auth-page {
    grid-template-columns: 1fr;
  }
  .rm-left-photo {
    position: absolute;
    inset: 0;
    opacity: 0.45;
    background:
      linear-gradient(90deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.75)),
      url("../img/login-lady.png") center bottom / min(82vw, 420px) auto no-repeat;
  }
  .rm-auth-content {
    min-height: 100vh;
    align-items: center;
    padding: 40px 20px 80px;
    text-align: center;
  }
  .rm-subtitle {
    text-align: center;
  }
  .rm-footer-strip {
    width: calc(100vw - 18px);
    bottom: 8px;
    min-height: 38px;
    flex-wrap: wrap;
    gap: 6px 12px;
    padding: 8px;
  }
}
