/* ----------------------------- */
/* GLOBAL STYLES */
/* ----------------------------- */
body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: var(--bgthemes);    
}

.login-body{
    font-family: 'Segoe UI', sans-serif;
    padding:0;
    margin:0;

    overflow-y: hidden;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;

    display: flex;
    align-items: center;
    justify-content: flex-start; 
    min-height: 100vh;
}

.login-container {
    position: absolute;
    width: 100%;
    max-width: 400px;
    display: flex;
    justify-content: flex-start; 
    margin-left:50px;
    z-index: 99; 
}
/* ----------------------------- */
/* LOGIN CARD */
/* ----------------------------- */
.form-login {
  width: 360px;
  padding: 2rem;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
  color: #252525;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.form-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.form-header img {
  max-width: 150px;
}

.form-header h4 {
  margin-top: 10px;
  font-weight: 500;
  font-size: 1.2rem;
  color: #333;
}

/* ----------------------------- */
/* INPUTS */
/* ----------------------------- */
.input-group-text {
  background: #f8f9fa;
}

.warning-notes {
  font-size: 0.75rem;
  display: flex;
  justify-content: center;
  color: red;
}

/* BUTTONS */
.btn-wrapper {
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.btn-wrapper .btn {
  width: 100%;
  padding: 0.5rem 0;
}

.btn-footer {
  font-size: 14px;
  text-align: center;
  margin-top: 1rem;
}

/* ========================= */
/* LOADER CONTAINER POSITION */
/* ========================= */

/* Desktop: align left like form */
.loader-container {
    position: absolute;
    width: 100%;
    max-width: 400px;
    display: flex;
    justify-content: flex-start; 
    margin-left:100px;
    z-index: 100;     
}

/* Loader body inside container */
.loader-body {
    display: flex;
    justify-content: flex-start; 
    width: 100%;
    text-align: left;
}

/* Container styling (keep your previous styles) */
.animated-image {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    gap: 10px;
    padding: 20px;
    border-radius: 15px;
    width: 250px;
    margin: 0;
    background: #f0f8ff; 
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    overflow: hidden;
    
}

/* Running border using pseudo-element */
.animated-image::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 15px;
    padding: 4px; /* border thickness */
    background: linear-gradient(90deg, #007bff, #00ffea, #ff00ff, #007bff);
    background-size: 300% 300%;
    z-index: 0;

    /* Make inner part transparent */
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude; /* for Firefox */
    mask:
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    mask-composite: exclude;

    animation: borderMove 3s linear infinite;
}

/* Keep content above the border */
.animated-image > * {
    position: relative;
    z-index: 1;
}

/* Gradient animation */
@keyframes borderMove {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animated-image img {
    width: 100%;
    transform-origin: center center;
    animation: spinYFloat 8s linear infinite;
}

.loading-text {
    font-family: Arial, sans-serif;
    font-size: 1rem;
    color: #007bff;
    font-weight: bold;
    margin-bottom: 5px;
}

/* Animated dots */
.loading-text .dots::after {
    content: "";
    display: inline-block;
    width: 1em; /* width of dots */
    text-align: left;
    animation: dots 1s steps(3, end) infinite;
}

@keyframes dots {
    0%   { content: ""; }
    33%  { content: "."; }
    66%  { content: ".."; }
    80%  { content: "..."; }
    100% { content: "...."; }
}

/* Vertical spin + float for image */
@keyframes spinYFloat {
    0%   { transform: rotateY(0deg) translateY(0px); }
    25%  { transform: rotateY(90deg) translateY(-5px); }
    50%  { transform: rotateY(180deg) translateY(0px); }
    75%  { transform: rotateY(270deg) translateY(5px); }
    100% { transform: rotateY(360deg) translateY(0px); }
}

/*== Loader Bar ===*/
.loader-bar {
    width: 180px;
    height: 6px;
    background: #eee;
    border-radius: 10px;
    overflow: visible; /* important for tooltip */
    margin: 10px auto;
    position: relative;
}

.loader-progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #007bff, #00c6ff);
    border-radius: 10px;
    position: relative;
    transition: width 0.3s ease;
}

/* Tooltip */
.loader-tooltip {
    position: absolute;
    top: -28px;
    right: 0;
    transform: translateX(50%);
    background: #333;
    color: #fff;
    font-size: 11px;
    padding: 3px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

/* Small arrow */
.loader-tooltip::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 50%;
    transform: translateX(50%);
    border-width: 4px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}



.register-body{
    font-family: 'Segoe UI', sans-serif;
    padding:0;
    margin:0;

    overflow-y: hidden;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;

    display: flex;
    align-items: center;
    justify-content:center; 
    min-height: 100vh;
}

.form-container{
  position: relative;
  width: 100%;
  max-width: 500px;
  display: flex;
  justify-content: center; 
  margin:auto;
  z-index: 99; 
}
/* ----------------------------- */
/* LOGIN CARD */
/* ----------------------------- */
.form-register {
  width: 100%;
  padding: 2rem;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
  color: #252525;
  box-sizing: border-box;
  transition: all 0.3s ease;
}





/* ========================= */
/* MOBILE / TABLET ≤ 991px */
/* ========================= */
@media (max-width: 991px) {
  .loader-container {
      justify-content: center; 
      margin-left:10px;
  }

  .loader-body {
      justify-content: center;
      text-align: center;
  }
  .login-container {
      justify-content: center; 
      margin-left:10px;
  }
  .login-body {
      justify-content: center;
      text-align: center;
      padding: 0;
      margin: 0;
  }

  .form-login {
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  .form-login {
    padding: 1.5rem 1rem;
  }

  .loader-container {
    margin-top: 15px;
  }
}

@media (max-width: 576px) {

  .form-login {
    padding: 1rem;
    font-size: 0.9rem;
  }

  .btn-wrapper .btn {
    font-size: 0.9rem;
  }
}

@media (max-width: 495px) {
  .btn-wrapper .btn {
    font-size: 0.9rem;
  }
}

@media (max-width:420px) {
  .form-login {
    width: 320px;
  }

  .btn-wrapper .btn {
    font-size: 0.9rem;
  }
}

@media (max-width:360px) {
   .login-container {
      justify-content: center; 
      margin-left:-10px;
  }
  .loader-container {
      justify-content: center; 
      margin-left:-8px;
  }
}