/* ========== BN-LOGIN STYLES ========== */
/* Extracted from BonzaUI/login.html */

:root {
  --purple-300: #DFBCFF;
  --purple-400: #CC95FF;
  --purple-800: #432362;
  --purple-900: #1F102D;
  --neutral-400: #9E9E9E;
  --neutral-500: #777;
  --neutral-600: #4B4B4B;
  --neutral-700: #2E2E2E;
  --neutral-800: #131313;
  --neutral-900: #000;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Heebo', sans-serif;
  background: #000;
  color: #fff;
  min-height: 100vh;
}

.login-page {
  display: flex;
  min-height: 100vh;
}

/* ========== LEFT FORM ========== */
.login-form {
  width: 547px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px 72px;
}

.form-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 56px;
  width: 100%;
  flex: 1;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
}

.logo img.mark {
  height: 32px;
}

.logo img.text {
  height: 24px;
}

.form-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 24px;
}

.form-title {
  font-size: 32px;
  font-weight: 500;
  line-height: 40px;
  color: var(--neutral-600);
  text-align: center;
  width: 100%;
}

/* Toast notification (session expired, logged out) */
.login-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  max-width: 420px;
  width: calc(100% - 32px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  animation: toast-slide-in 0.35s ease-out;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.login-toast--error {
  background: rgba(255, 75, 85, 0.15);
  border: 1px solid rgba(255, 75, 85, 0.35);
  color: #ff6b6b;
}
.login-toast--success {
  background: rgba(80, 200, 120, 0.15);
  border: 1px solid rgba(80, 200, 120, 0.35);
  color: #50c878;
}
.login-toast__text {
  flex: 1;
  line-height: 1.4;
}
.login-toast__close {
  background: none;
  border: none;
  color: inherit;
  font-size: 20px;
  cursor: pointer;
  padding: 0 2px;
  opacity: 0.7;
  transition: opacity 0.2s;
  line-height: 1;
}
.login-toast__close:hover {
  opacity: 1;
}
@keyframes toast-slide-in {
  from { opacity: 0; transform: translateX(-50%) translateY(-16px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Inline error message (validation errors) */
.reason-message {
  background: rgba(255, 95, 109, 0.1);
  border: 1px solid rgba(255, 95, 109, 0.3);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  color: #ff5f6d;
  text-align: center;
  width: 100%;
}

.form-fields {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.field-label {
  font-size: 12px;
  line-height: 16px;
  padding: 0 8px;
  color: #fff;
}

.field-input {
  background: var(--neutral-800);
  border: 1px solid var(--neutral-700);
  border-radius: 8px;
  padding: 12px 12px 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.field-input input {
  flex: 1;
  background: none !important;
  border: none;
  outline: none;
  color: #fff !important;
  font-family: inherit;
  font-size: 14px;
  line-height: 20px;
  height: 20px;
}

/* Override autofill styles */
.field-input input:-webkit-autofill,
.field-input input:-webkit-autofill:hover,
.field-input input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff !important;
  -webkit-box-shadow: 0 0 0 1000px var(--neutral-800) inset !important;
  box-shadow: 0 0 0 1000px var(--neutral-800) inset !important;
  background-color: var(--neutral-800) !important;
}

.field-input input::placeholder {
  color: var(--neutral-500);
}

.field-input img {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.password-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.forgot {
  color: var(--purple-400);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  padding: 0 8px;
  cursor: pointer;
}

.forgot:hover {
  text-decoration: underline;
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.btn-row {
  display: flex;
  gap: 16px;
}

.btn {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  padding: 10px 24px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--neutral-700);
  color: #fff;
}

.btn-secondary:hover {
  background: var(--neutral-600);
}

.btn-primary {
  background: #fff;
  color: #000;
  box-shadow: 0 2px 20px rgba(255, 255, 255, 0.56);
  flex: 1;
}

.btn-primary:hover {
  box-shadow: 0 4px 24px rgba(255, 255, 255, 0.7);
}

.divider {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--neutral-700);
}

.divider span {
  font-size: 12px;
  color: var(--neutral-500);
}

.social-row {
  display: flex;
  gap: 16px;
}

.btn-social {
  flex: 1;
  background: var(--neutral-700);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 24px 10px 16px;
  border-radius: 10px;
  border: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-social:hover {
  background: var(--neutral-600);
}

.btn-social img {
  width: 20px;
  height: 20px;
}

.btn-back-home {
  background: none;
  border: none;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  padding: 10px 24px;
  cursor: pointer;
  align-self: center;
  transition: opacity 0.2s;
}

.btn-back-home:hover {
  opacity: 0.7;
}

.form-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 0 10px;
  width: 100%;
}

.socials {
  display: flex;
  gap: 16px;
}

.socials a {
  display: flex;
  align-items: center;
  justify-content: center;
}

.socials img {
  width: 20px;
  height: 20px;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.socials a:hover img {
  opacity: 1;
}

.copyright {
  font-size: 12px;
  color: var(--neutral-600);
  text-align: center;
}

/* ========== RIGHT SLIDER ========== */
.login-slider {
  flex: 1;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.slider-frame {
  position: relative;
  width: 100%;
  height: calc(100vh - 16px);
  max-height: 808px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--neutral-800);
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s;
}

.slide.active {
  opacity: 1;
}

.slide img.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.slide-caption {
  position: absolute;
  bottom: 48px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 12px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: #fff;
}

.slide-title-anime {
  position: absolute;
  top: 120px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Borel', cursive;
  font-size: 96px;
  line-height: 1;
  background: linear-gradient(180deg, #fff 0%, #be78ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.slide-title-script {
  position: absolute;
  top: 170px;
  left: 73px;
  font-family: 'Borel', cursive;
  font-size: 56px;
  color: #fff;
}

.badge-new {
  position: absolute;
  top: 88px;
  left: 230px;
  transform: rotate(-15deg);
  background: var(--purple-400);
  color: var(--purple-900);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
}

.chat-bubble {
  position: absolute;
  background: rgba(255, 255, 255, 0.16);
  padding: 6px 8px;
  border-radius: 12px 12px 12px 4px;
  font-size: 14px;
  line-height: 20px;
  color: #fff;
  max-width: 230px;
}

.dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  align-items: center;
  z-index: 5;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 8px;
  background: #fff;
  opacity: 0.3;
  cursor: pointer;
  transition: width 0.3s, opacity 0.3s;
}

.dot.active {
  width: 28px;
  opacity: 1;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .login-page {
    flex-direction: column;
  }
  
  .login-form {
    width: 100%;
    padding: 32px 24px;
  }
  
  .login-slider {
    display: none;
  }
}
