/* theme2026 — ورود و OTP */

.bk-auth {
  min-height: calc(100vh - 220px);
  display: grid;
  place-items: center;
  padding: 28px 16px 48px;
  direction: rtl;
}

.bk-auth-shell {
  width: min(920px, 100%);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: #fff;
  border: 1px solid var(--bk-line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(21, 32, 43, 0.08);
}

.bk-auth-aside {
  background:
    radial-gradient(500px 280px at 20% 0%, rgba(10, 102, 178, 0.38), transparent 60%),
    linear-gradient(160deg, #15202b 0%, #1f3646 55%, #17303d 100%);
  color: #e8eef3;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-height: 420px;
}

.bk-auth-aside h2 {
  margin: 0 0 10px;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.45;
}

.bk-auth-aside p {
  margin: 0;
  font-size: 14px;
  line-height: 1.9;
  color: #b7c3ce;
}

.bk-auth-aside .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none !important;
  font-weight: 800;
}

.bk-auth-aside .brand img {
  width: 148px;
  height: auto;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  padding: 7px 10px;
}

.bk-auth-panel {
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bk-auth-panel h1 {
  margin: 0 0 8px;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--bk-ink);
}

.bk-auth-panel .lead {
  margin: 0 0 22px;
  font-size: 13px;
  color: var(--bk-muted);
  line-height: 1.8;
}

.bk-auth-panel .otp-message {
  margin: 0 0 22px;
  font-size: 13px;
  color: var(--bk-muted);
  line-height: 1.8;
}

.bk-auth form label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--bk-ink);
}

.bk-auth form .form-input,
.bk-auth form input[type="text"],
.bk-auth form input[type="number"],
.bk-auth form input[type="tel"] {
  width: 100%;
  border: 1px solid var(--bk-line);
  background: var(--bk-panel);
  border-radius: 12px;
  padding: 13px 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--bk-ink);
  outline: none;
  direction: ltr;
  text-align: left;
}

.bk-auth form .form-input:focus,
.bk-auth form input:focus {
  border-color: #9bb7c4;
  box-shadow: 0 0 0 3px rgba(31, 111, 139, 0.12);
  background: #fff;
}

.bk-auth .phoneNumber-error,
.bk-auth .error {
  min-height: 20px;
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--dk-danger, #ef4056);
}

.bk-auth .accept-privacy {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0 20px;
  position: relative;
}

.bk-auth .accept-privacy input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.bk-auth .accept-privacy .box {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.5px solid #c5ced6;
  background: #fff;
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
  position: relative;
}

.bk-auth .accept-privacy .box.accept {
  background: var(--bk-ink);
  border-color: var(--bk-ink);
}

.bk-auth .accept-privacy .box.accept::after {
  content: "";
  position: absolute;
  inset: 3px 6px 6px 5px;
  border: 2px solid #fff;
  border-top: 0;
  border-left: 0;
  transform: rotate(45deg);
}

.bk-auth .accept-privacy label {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--bk-muted);
  line-height: 1.8;
  cursor: pointer;
}

.bk-auth .accept-privacy label a {
  color: var(--bk-link);
  font-weight: 700;
}

.bk-auth form button[type="submit"] {
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: var(--bk-accent);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  padding: 14px 16px;
  cursor: pointer;
}

.bk-auth form button[type="submit"]:hover:not(:disabled) {
  background: var(--bk-accent-dark);
}

.bk-auth form button[type="submit"]:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.bk-auth .otp-container {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
  gap: 8px;
  margin-bottom: 18px;
  align-items: center;
}

.bk-auth .otp-container .otp-input {
  width: 100%;
  aspect-ratio: 1;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 800;
  border: 1px solid var(--bk-line);
  border-radius: 12px;
  background: var(--bk-panel);
  direction: ltr;
  padding: 0;
}

.bk-auth .otp-container .otp-input:focus {
  border-color: var(--bk-ink);
  background: #fff;
  outline: none;
}

.bk-auth .resend-otp {
  border: 1px solid var(--bk-line);
  background: #fff;
  border-radius: 12px;
  min-width: 84px;
  height: 100%;
  min-height: 48px;
  padding: 8px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--bk-ink);
  cursor: pointer;
}

.bk-auth .resend-otp:disabled {
  opacity: 0.55;
  cursor: default;
  color: var(--bk-muted);
}

.bk-auth .resend-otp p,
.bk-auth .resend-otp span {
  margin: 0;
}

.signin-page,
.otp-page {
  width: 100%;
}

@media (max-width: 820px) {
  .bk-auth-shell {
    grid-template-columns: 1fr;
  }

  .bk-auth-aside {
    min-height: auto;
    padding: 22px 20px;
  }

  .bk-auth-aside h2 {
    font-size: 1.25rem;
  }

  .bk-auth-panel {
    padding: 24px 20px 28px;
  }
}
