/* ============================================================
   BuddieSpace — Login Section
   CSS class prefix: bs-login
   Figma reference: node 1:577 (RwwSPnE42UdisR1nLlsl9D)
   Tokens: Navy #21254a | Green #b0f288 | White #ffffff | Inter
   ============================================================ */

/* ── Page wrapper ── */
.bs-login {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  font-family: 'Inter', sans-serif;
}

/* ============================================================
   LEFT PANEL — branded hero
   ============================================================ */
.bs-login__brand {
  background-color: #21254a;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(2.5rem, 5vw, 5rem) clamp(2rem, 4.5vw, 4.5rem);
  position: relative;
  overflow: hidden;
}

/* decorative large watermark text */
.bs-login__brand::before {
  content: 'BuddieSpace';
  position: absolute;
  bottom: -2rem;
  left: -1rem;
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 900;
  color: rgba(255, 255, 255, 0.05);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  line-height: 1;
  letter-spacing: -0.02em;
}

/* decorative green circle accent */
.bs-login__brand::after {
  content: '';
  position: absolute;
  top: -6rem;
  right: -6rem;
  width: clamp(14rem, 25vw, 22rem);
  height: clamp(14rem, 25vw, 22rem);
  border-radius: 50%;
  background: rgba(176, 242, 136, 0.08);
  pointer-events: none;
}

/* Logo row */
.bs-login__logo-row {
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 1.2vw, 1rem);
  position: relative;
  z-index: 1;
}

.bs-login__logo-img {
  width: clamp(2.8rem, 4.5vw, 3.8rem);
  height: clamp(2.8rem, 4.5vw, 3.8rem);
  border-radius: 0.9rem;
  object-fit: cover;
  flex-shrink: 0;
}

.bs-login__logo-name {
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

/* Main brand copy */
.bs-login__brand-content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 4vw, 4rem) 0;
}

.bs-login__headline {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 clamp(1rem, 2vw, 1.8rem) 0;
}

.bs-login__headline-accent {
  color: #b0f288;
}

.bs-login__tagline {
  font-size: clamp(0.9rem, 1.3vw, 1.1rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
  max-width: 34ch;
  margin: 0;
}

/* Trust badges */
.bs-login__trust {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.bs-login__trust-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: clamp(0.78rem, 1vw, 0.88rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

.bs-login__trust-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b0f288;
  flex-shrink: 0;
}

/* ============================================================
   RIGHT PANEL — login form
   ============================================================ */
.bs-login__form-panel {
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(3rem, 6vw, 5.5rem) clamp(2rem, 5vw, 4.5rem);
}

.bs-login__form-inner {
  width: 100%;
  max-width: 420px;
}

/* Form header */
.bs-login__form-header {
  margin-bottom: clamp(1.8rem, 3vw, 2.8rem);
}

.bs-login__form-title {
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  font-weight: 800;
  color: #21254a;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 0.5rem 0;
}

.bs-login__form-subtitle {
  font-size: clamp(0.82rem, 1.1vw, 0.95rem);
  font-weight: 400;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

/* Notice / error messages */
.bs-login__notice {
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: #15803d;
  margin-bottom: 1.25rem;
}

.bs-login__error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: #dc2626;
  margin-bottom: 1.25rem;
}

/* Field groups */
.bs-login__field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: clamp(1rem, 1.6vw, 1.4rem);
}

.bs-login__label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #21254a;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.bs-login__input {
  width: 100%;
  padding: clamp(0.7rem, 1.2vw, 0.9rem) clamp(0.9rem, 1.5vw, 1.1rem);
  border: 1.5px solid #e2e6f0;
  border-radius: 0.6rem;
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.88rem, 1.1vw, 0.98rem);
  font-weight: 400;
  color: #21254a;
  background: #f9fafb;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
}

.bs-login__input:focus {
  border-color: #21254a;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(33, 37, 74, 0.08);
}

.bs-login__input::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

/* Remember me row */
.bs-login__remember-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: clamp(1.2rem, 2vw, 1.75rem);
}

.bs-login__checkbox {
  width: 1rem;
  height: 1rem;
  accent-color: #21254a;
  cursor: pointer;
  flex-shrink: 0;
}

.bs-login__remember-label {
  font-size: 0.85rem;
  font-weight: 400;
  color: #6b7280;
  cursor: pointer;
  line-height: 1.4;
}

/* Submit button */
.bs-login__submit {
  display: block;
  width: 100%;
  padding: clamp(0.8rem, 1.4vw, 1rem) 1.5rem;
  background: #b0f288;
  color: #21254a;
  border: none;
  border-radius: 0.6rem;
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
}

.bs-login__submit:hover {
  background: #9ae674;
  box-shadow: 0 4px 16px rgba(176, 242, 136, 0.45);
  transform: translateY(-1px);
}

.bs-login__submit:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Forgot password link */
.bs-login__forgot {
  display: block;
  text-align: center;
  margin-top: clamp(1rem, 1.6vw, 1.4rem);
  font-size: 0.85rem;
  font-weight: 500;
  color: #21254a;
  text-decoration: none;
  opacity: 0.65;
  transition: opacity 0.15s ease;
}

.bs-login__forgot:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Divider */
.bs-login__divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: clamp(1.2rem, 2vw, 1.75rem) 0;
}

.bs-login__divider::before,
.bs-login__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.bs-login__divider-text {
  font-size: 0.78rem;
  font-weight: 500;
  color: #9ca3af;
  white-space: nowrap;
}

/* Footer note */
.bs-login__form-footer {
  margin-top: clamp(1.5rem, 2.5vw, 2.2rem);
  padding-top: clamp(1rem, 1.6vw, 1.4rem);
  border-top: 1px solid #f0f0f4;
  text-align: center;
  font-size: 0.78rem;
  color: #9ca3af;
  line-height: 1.5;
}

.bs-login__form-footer a {
  color: #21254a;
  font-weight: 500;
  text-decoration: none;
}

.bs-login__form-footer a:hover {
  text-decoration: underline;
}

/* ============================================================
   RESPONSIVE — tablet  (≤1023px)
   ============================================================ */
@media (max-width: 1023px) {
  .bs-login {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .bs-login__brand {
    padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 5vw, 3rem);
    min-height: auto;
  }

  .bs-login__brand::before {
    font-size: clamp(3rem, 12vw, 6rem);
    bottom: -1rem;
  }

  .bs-login__brand-content {
    padding: clamp(1.5rem, 3vw, 2.5rem) 0;
  }

  .bs-login__tagline {
    max-width: 52ch;
  }

  .bs-login__form-panel {
    padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 5vw, 3rem);
  }

  .bs-login__form-inner {
    max-width: 480px;
  }
}

/* ============================================================
   RESPONSIVE — mobile (≤599px)
   ============================================================ */
@media (max-width: 599px) {
  .bs-login__brand {
    padding: 2rem 1.25rem;
  }

  .bs-login__brand::before {
    display: none;
  }

  .bs-login__headline {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

  .bs-login__trust {
    display: none;
  }

  .bs-login__form-panel {
    padding: 2rem 1.25rem;
  }

  .bs-login__form-inner {
    max-width: 100%;
  }

  .bs-login__form-title {
    font-size: clamp(1.4rem, 6vw, 1.8rem);
  }
}
