/* Biekar — Login & Signup Modals */
.bk-auth-modal .modal-dialog {
  max-width: 820px;
}

.bk-auth-modal .modal-content {
  border: none;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.22);
}

.bk-auth-modal__layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  min-height: 520px;
}

/* Brand panel */
.bk-auth-modal__brand {
  background: linear-gradient(145deg, #1a1d26 0%, #2d3344 50%, #3d2810 100%);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.bk-auth-modal__brand::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 100% 0%, rgba(247, 149, 31, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(247, 149, 31, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.bk-auth-modal__brand > * {
  position: relative;
  z-index: 1;
}

.bk-auth-modal__logo {
  display: inline-block;
  margin-bottom: 0.5rem;
}

.bk-auth-modal__logo img {
  height: 64px;
  width: auto;
  filter: drop-shadow(0 4px 18px rgba(247, 149, 31, 0.55));
  transition: transform 0.25s ease, filter 0.25s ease;
}

.bk-auth-modal__logo:hover img {
  transform: scale(1.04);
  filter: drop-shadow(0 6px 24px rgba(247, 149, 31, 0.75));
}

.bk-auth-modal__brand h3 {
  color: #fff;
  font-weight: 800;
  font-size: 1.65rem;
  line-height: 1.25;
  margin: 2rem 0 0.75rem;
  letter-spacing: -0.02em;
}

.bk-auth-modal__brand h3 span {
  color: #f7951f;
}

.bk-auth-modal__brand p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0;
  max-width: 240px;
}

.bk-auth-modal__features {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.bk-auth-modal__features li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.88rem;
  font-weight: 600;
}

.bk-auth-modal__features i {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(247, 149, 31, 0.2);
  color: #f7951f;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bk-auth-modal__brand-foot {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.bk-auth-modal__brand-foot i {
  color: #f7951f;
}

/* Form panel */
.bk-auth-modal__panel {
  background: #fff;
  padding: 2rem 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  position: relative;
}

.bk-auth-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 2px solid #e8ecf3;
  background: #fff;
  color: #5a6275;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 5;
  padding: 0;
}

.bk-auth-modal__close:hover {
  border-color: #f7951f;
  color: #f7951f;
  background: rgba(247, 149, 31, 0.08);
}

.bk-auth-modal__head {
  margin-bottom: 1.5rem;
  padding-right: 2.5rem;
}

.bk-auth-modal__head h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1a1d26;
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}

.bk-auth-modal__head p {
  color: #5a6275;
  font-size: 0.9rem;
  margin: 0;
}

.bk-auth-modal__body {
  flex: 1;
  overflow-y: auto;
  max-height: min(380px, 55vh);
  padding-right: 0.25rem;
}

.bk-auth-modal__body::-webkit-scrollbar {
  width: 5px;
}

.bk-auth-modal__body::-webkit-scrollbar-thumb {
  background: #f7951f;
  border-radius: 4px;
}

.bk-auth-modal__options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bk-auth-modal__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.85rem 1.25rem;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

.bk-auth-modal__btn--google {
  background: #fff;
  color: #1a1d26;
  border: 2px solid #e8ecf3;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.bk-auth-modal__google-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.bk-auth-modal__btn--google:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(247, 149, 31, 0.45);
  color: #fff;
}

.bk-auth-modal__btn--secondary {
  background: #f4f6fa;
  color: #1a1d26;
  border: 2px solid #e8ecf3;
}

.bk-auth-modal__btn--secondary:hover {
  border-color: #f7951f;
  background: rgba(247, 149, 31, 0.08);
  color: #1a1d26;
}

.bk-auth-modal__btn--primary {
  background: linear-gradient(135deg, #f7951f, #e67e22);
  color: #fff;
  margin-top: 0.5rem;
}

.bk-auth-modal__btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(247, 149, 31, 0.35);
  color: #fff;
}

.bk-auth-modal__divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.25rem 0;
  color: #9ca3af;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.bk-auth-modal__divider::before,
.bk-auth-modal__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e8ecf3;
}

.bk-auth-modal__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #f4f6fa;
  border: 2px solid #e8ecf3;
  color: #5a6275;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  cursor: pointer;
  margin-bottom: 1.25rem;
  transition: all 0.2s ease;
}

.bk-auth-modal__back:hover {
  border-color: #f7951f;
  color: #f7951f;
  background: rgba(247, 149, 31, 0.08);
}

.bk-auth-modal__form .form-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #5a6275;
  margin-bottom: 0.4rem;
}

.bk-auth-modal__input-wrap {
  position: relative;
  margin-bottom: 1rem;
}

.bk-auth-modal__input-wrap i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 1rem;
  pointer-events: none;
  transition: color 0.2s;
}

.bk-auth-modal__input-wrap .form-control {
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  border: 2px solid #e8ecf3;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.bk-auth-modal__input-wrap .form-control:focus {
  border-color: #f7951f;
  box-shadow: 0 0 0 4px rgba(247, 149, 31, 0.12);
}

.bk-auth-modal__input-wrap .form-control:focus + i,
.bk-auth-modal__input-wrap:focus-within i {
  color: #f7951f;
}

.bk-auth-modal__footer {
  text-align: center;
  padding-top: 1.25rem;
  margin-top: auto;
  border-top: 1px solid #eef1f6;
  font-size: 0.9rem;
  color: #5a6275;
}

.bk-auth-modal__footer a {
  color: #f7951f;
  font-weight: 700;
  text-decoration: none;
}

.bk-auth-modal__footer a:hover {
  text-decoration: underline;
}

.bk-auth-modal .modal-backdrop.show {
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.bk-auth-modal__remember {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: #6b7280;
  margin-bottom: 1rem;
  cursor: pointer;
}

.bk-auth-modal__forgot {
  font-size: 0.82rem;
  color: #f7951f;
  font-weight: 700;
  text-decoration: none;
}

.bk-auth-modal__forgot:hover { text-decoration: underline; }

.bk-auth-modal__error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: 10px;
  padding: 0.6rem 0.85rem;
  color: #dc2626;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 767px) {
  .bk-auth-modal .modal-dialog {
    max-width: calc(100% - 1.5rem);
    margin: 0.75rem auto;
  }

  .bk-auth-modal__layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .bk-auth-modal__brand {
    padding: 1.5rem 1.35rem;
    min-height: auto;
  }

  .bk-auth-modal__brand h3 {
    font-size: 1.25rem;
    margin-top: 1rem;
  }

  .bk-auth-modal__features {
    display: none;
  }

  .bk-auth-modal__brand-foot {
    display: none;
  }

  .bk-auth-modal__panel {
    padding: 1.5rem 1.35rem 1.25rem;
  }

  .bk-auth-modal__head h2 {
    font-size: 1.3rem;
  }
}

@media (max-width: 479.98px) {
  .bk-auth-modal .modal-dialog {
    max-width: calc(100% - 1rem);
    margin: 0.5rem auto;
  }
  .bk-auth-modal__panel {
    padding: 1.25rem 1rem 1rem;
  }
  .bk-auth-modal__btn {
    padding: 0.75rem 1rem;
    font-size: 0.88rem;
  }
}

/* Success / info message shown above the sign-in options (e.g. after a password reset) */
.bk-auth-modal__notice {
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 10px;
  padding: 0.6rem 0.85rem;
  color: #15803d;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.bk-auth-modal__notice i { margin-right: 0.25rem; }
