
:root {
  --bm7d-auth-green: #a2bd30;
  --bm7d-auth-dark: rgba(10, 18, 24, .78);
  --bm7d-auth-text: #ffffff;
  --bm7d-auth-muted: rgba(255,255,255,.72);
}

* { box-sizing: border-box; }

html, body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body.bm7d-auth-page {
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--bm7d-auth-text);
  background: #0d151b;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.bm7d-auth-video,
.bm7d-auth-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

.bm7d-auth-video {
  z-index: 0;
  object-fit: cover;
}

.bm7d-auth-overlay {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(3,8,12,.22), rgba(3,8,12,.34)),
    radial-gradient(circle at center, rgba(0,0,0,.06), rgba(0,0,0,.35));
}

.bm7d-auth-main {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 104px);
  display: grid;
  place-items: center;
  padding: 28px 18px 40px;
}

.bm7d-auth-card {
  width: min(390px, calc(100vw - 32px));
  padding: 34px 42px 30px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 62px 62px 34px 34px;
  background: var(--bm7d-auth-dark);
  box-shadow: 0 22px 70px rgba(0,0,0,.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.bm7d-auth-logo {
  display: block;
  width: min(210px, 78%);
  height: auto;
  margin: 0 auto 10px;
}

.bm7d-auth-card h1 {
  margin: 0;
  text-align: center;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: .025em;
}

.bm7d-auth-subtitle {
  margin: 5px 0 22px;
  text-align: center;
  color: var(--bm7d-auth-muted);
  font-size: 12px;
}

.bm7d-auth-form {
  display: grid;
  gap: 12px;
}

.bm7d-auth-form[hidden] { display: none; }

.bm7d-auth-form label {
  display: grid;
  gap: 5px;
}

.bm7d-auth-form label > span {
  color: rgba(255,255,255,.84);
  font-size: 11px;
  font-weight: 650;
}

.bm7d-auth-form input {
  width: 100%;
  height: 42px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 5px;
  padding: 0 12px;
  color: #13202a;
  background: rgba(255,255,255,.96);
  outline: none;
  font: inherit;
}

.bm7d-auth-form input:focus {
  border-color: var(--bm7d-auth-green);
  box-shadow: 0 0 0 3px rgba(162,189,48,.25);
}

.bm7d-auth-form input.bm7d-auth-otp {
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: .42em;
  padding-left: calc(12px + .42em);
}

.bm7d-auth-form button[type="submit"] {
  min-height: 42px;
  border: 0;
  border-radius: 5px;
  color: #fff;
  background: var(--bm7d-auth-green);
  font-weight: 800;
  cursor: pointer;
}

.bm7d-auth-form button[type="submit"]:hover {
  filter: brightness(1.06);
}

.bm7d-auth-form button:disabled {
  opacity: .62;
  cursor: wait;
}

.bm7d-auth-link {
  border: 0;
  padding: 2px;
  color: rgba(255,255,255,.78);
  background: transparent;
  font-size: 11px;
  text-decoration: underline;
  cursor: pointer;
}

.bm7d-auth-inline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.bm7d-auth-message {
  display: none;
  margin: 0 0 13px;
  padding: 9px 10px;
  border-radius: 6px;
  font-size: 11px;
  line-height: 1.4;
}

.bm7d-auth-message.is-visible {
  display: block;
}

.bm7d-auth-message.is-error {
  color: #ffe4e4;
  background: rgba(178, 45, 45, .52);
}

.bm7d-auth-message.is-success {
  color: #f7ffe4;
  background: rgba(96, 122, 24, .58);
}

.bm7d-auth-instruction {
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: 12px;
  line-height: 1.45;
}

.bm7d-auth-footer {
  position: relative;
  z-index: 3;
  min-height: 104px;
  padding: 11px 24px 10px;
  display: grid;
  align-content: center;
  gap: 5px;
  color: #fff;
  background: var(--bm7d-auth-green);
  text-align: center;
  font-size: 9px;
  line-height: 1.35;
}

.bm7d-auth-footer p { margin: 0; }

@media (max-width: 640px) {
  .bm7d-auth-main { min-height: calc(100vh - 154px); }
  .bm7d-auth-card {
    padding: 28px 24px 24px;
    border-radius: 38px 38px 24px 24px;
  }
  .bm7d-auth-footer {
    min-height: 154px;
    padding-inline: 14px;
    font-size: 8px;
  }
}
