/* ===============================
   BASE PAGE
   =============================== */

body {
  height: 100vh;
  overflow: hidden;
  background: #0F1624;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Poppins", sans-serif;
  color: #fff;
}

/* ===============================
   CANVAS BACKGROUND
   =============================== */

#bgCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* ===============================
   LOGIN CARD CONTAINER
   =============================== */

.login-container {
  position: relative;
  z-index: 2;
  display: flex;
  width: 85%;
  max-width: 1000px;
  height: 550px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 25px rgba(0,0,0,0.4);
}

/* ===============================
   LEFT BRAND PANEL
   =============================== */

.left-panel {
  flex: 1;
  background: var(--primary-gradient);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 30px;
}

.left-panel img {
  width: 160px;
  margin-bottom: 20px;
}

/* ===============================
   FLOATING SHAPES (DO NOT TOUCH COLORS)
   =============================== */

.floating-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.3;
  animation: float 3s ease-in-out infinite;
}

.shape1 { width: 80px; height: 80px; background: #fff; top: 10%; left: 20%; animation-delay: 0s; }
.shape2 { width: 100px; height: 100px; background: #ffd580; bottom: 20%; right: 15%; animation-delay: 2s; }
.shape3 { width: 60px; height: 60px; background: #00d4ff; top: 30%; left: 60%; animation-delay: 1s; }
.shape4 { width: 50px; height: 50px; background: #ff6f91; bottom: 25%; left: 35%; animation-delay: 3s; }
.shape5 { width: 70px; height: 70px; background: #fff700; top: 50%; right: 25%; animation-delay: 0.5s; }
.shape6 { width: 40px; height: 40px; background: #ff8c00; top: 60%; left: 15%; animation-delay: 1.2s; }
.shape7 { width: 55px; height: 55px; background: #8a2be2; bottom: 15%; right: 40%; animation-delay: 2.5s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-25px); }
}

/* ===============================
   RIGHT LOGIN PANEL
   =============================== */

.right-panel {
  flex: 1;
  background: #fff;
  color: #222;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.right-panel h3 {
  color: var(--primary);
  font-weight: 700;
}

/* ===============================
   FLOATING LABEL INPUTS
   =============================== */

.form-group {
  position: relative;
  margin-bottom: 25px;
}

.form-label {
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  transition: 0.3s ease all;
  pointer-events: none;
  color: var(--primary);
  font-weight: 500;
}

.form-control {
  background: #f0f4ff;
  border: 2px solid var(--primary);
  border-radius: 12px;
  padding: 12px 15px;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.form-control::placeholder {
  color: transparent;
}

.form-control:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 8px color-mix(in srgb, var(--secondary), transparent 50%);
  outline: none;
}

.form-control:focus + .form-label,
.form-control:not(:placeholder-shown) + .form-label {
  top: -8px;
  left: 12px;
  background: #fff;
  padding: 0 5px;
  font-size: 12px;
  color: var(--secondary);
}

.form-control.is-invalid {
  border-color: #dc3545;
  box-shadow: 0 0 6px rgba(220, 53, 69, 0.4);
}

/* ===============================
   BUTTONS
   =============================== */

.btn-custom {
  padding: 10px 0;
  border-radius: 10px;
  font-weight: 600;
  transition: 0.3s ease;
}

.btn-primary {
  background: var(--primary-gradient);
  border: none;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

.btn-google {
  background: #fff;
  color: #444;
  border: 1px solid #ccc;
  display: flex !important;
  justify-content: center;
}

.btn-google:hover {
  background: #f9f9f9;
  transform: scale(1.02);
}

/* ===============================
   OTP MESSAGE
   =============================== */

.otp-msg {
  color: var(--primary);
  font-size: 13px;
  margin-bottom: 10px;
  display: none;
}

/* ===============================
   FOOTER
   =============================== */

.login-footer {
  text-align: center;
  font-size: 14px;
  margin-top: 15px;
}

.login-footer a {
  text-decoration: none;
  color: var(--primary);
  font-weight: 500;
}

/* ===============================
   LOADER
   =============================== */

#loader {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 999;
  justify-content: center;
  align-items: center;
}

#loader.show {
  display: flex;
}

#loader i {
  color: white;
  font-size: 3rem;
}

/* ===============================
   TABS
   =============================== */

.nav-tabs .nav-link {
  color: var(--primary);
  font-weight: 600;
  border-radius: 8px 8px 0 0;
}

.nav-tabs .nav-link.active {
  background: var(--primary-gradient);
  color: #fff !important;
  border: none;
}

/* ===============================
   TOAST STYLES (UNCHANGED)
   =============================== */

.toast-box {
  position: fixed;
  top: 20px;
  right: -400px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  color: #fff;
  font-weight: 500;
  padding: 15px 20px;
  min-width: 280px;
  max-width: 350px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 1200;
  opacity: 0;
  transition: all 0.6s ease;
}

.toast-box.show {
  opacity: 1;
  right: 20px;
}

.toast-box.success {
  background: linear-gradient(135deg, #00b09b, #96c93d);
}

.toast-box.danger {
  background: linear-gradient(135deg, #ff416c, #ff4b2b);
}

.toast-box.info {
  background: linear-gradient(135deg, #1e3c72, #2a5298);
}

.toast-icon {
  font-size: 22px;
}

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: rgba(255,255,255,0.9);
  width: 100%;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 3s linear;
}
