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

body, html {
    font-family: 'Segoe UI', sans-serif;
    font-size: 15px;
    color: #333;
}

body {
  overflow-y: hidden;
}

/* ==== CONTAINER PRINCIPAL ==== */
.login-main-component::before {
    content: "";
    position: absolute;
    inset: 0;
    background:rgb(167 180 183 / 49%);
    /* background: rgba(6, 23, 19, 0.489);  */
    backdrop-filter: blur(0px); 
    z-index: -1;
}

.login-main-component {
    position: relative;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 0;

    background-color: #ffffff;
    /* background-image: 
        url('/storage/logins/Esli only 2.png'),
        url('/storage/logins/Esli only 2.png'),
        url('/storage/logins/Esli only 2.png'); */
    background-repeat: no-repeat, no-repeat, no-repeat;
    background-size: 120px;
    background-position: 
        top 20% left 15%,
        center,
        bottom 20% right 16%;
    opacity: 10;
}

/* ==== VUE PRINCIPALE ==== */
.new-login-view {
    width: 100vw;
    height: 100vh;
    min-width: 1024px;
    min-height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ==== CONTENU ==== */
.login-content {
    display: flex;
    width: 100%;
    max-width: 850px;
    height: 630px;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #e4e8e7 transparent;
}

/* WebKit (Chrome, Edge, Safari) */
*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 10px;
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #aaa, #777);
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: content-box;
  transition: background 0.3s ease;
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #999, #555);
}


/* ==== 

/* ==== CÔTÉ GAUCHE ==== */
/* .login-left {
    flex: 1;
    background: url('/images/bg-left.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
}

.login-left .animated-img {
    position: absolute;
    animation: float 5s infinite ease-in-out;
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0); }
} */

/* ==== CÔTÉ DROIT ==== */
.login-right {
    flex: 1;
    background-color: #fff;
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

/* Sélecteur de langue */
.language-select {
    position: relative;
    width: 100%;
    height: auto;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 25px;
    left: 0;
}

.dropdownlist-lang {
    position: relative;
    width: 120px;
    font-family: 'Segoe UI', sans-serif;
    z-index: 2;
}

.select-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 12px;
    /* border: 1px solid #ddd; */
    border-radius: 5px;
    background-color: #fff;
    cursor: pointer;
    box-shadow: 0 1px 4px rgb(94 93 90 / 20%);
    transition: border 0.3s, box-shadow 0.3s;
    font-size: 13px;
}

.select-box .arrow {
    transition: transform 0.3s ease;
    color: #888;
}

.dropdownlist-lang.active .select-box .arrow {
    transform: rotate(180deg);
}

.options-container {
    position: absolute;
    top: 110%;
    right: 0;
    width: 100%;
    max-height: 200px;
    background-color: #fff;
    border-radius: 8px;
    border: 1px solid #ddd;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 3;
    font-size: 13px;
 }
.option.active {
  background-color: #cdeaff;
  font-weight: 500;
  border-left: 3px solid #009eff;
}

 /* Open dropdownlist like menu */


.dropdownlist-lang.active .options-container {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.search-box {
    width: 100%;
    padding: 8px 12px;
    border: none;
    border-bottom: 1px solid #eee;
    outline: none;
    font-size: 12px;
    background-color: #fff;
}

.option {
    padding: 6px 10px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.option:hover {
    background-color: #f1f1f1;
}

.options-container::-webkit-scrollbar {
    width: 6px;
}
.options-container::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 8px;
}
.options-container::-webkit-scrollbar-thumb:hover {
    background-color: #aaa;
}



/* Scroll personnalisé */
.options-container::-webkit-scrollbar {
    width: 6px;
}
.options-container::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 8px;
}
.options-container::-webkit-scrollbar-thumb:hover {
    background-color: #aaa;
}



/* Logo */
.logo-login {
    text-align: center;
    justify-content: center;
    margin-top: 2px;
    height: 10px;
}

.logo-login img {
    width: 55%;
    height: auto;
    margin-top: 5px;
}

/* Champs d'authentification */
.login-box-fields {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%; /* ← Réduit la largeur */
    max-width: 300px;
    align-items: center;
    overflow-x: auto;
    padding-top: 40px;
}

.input-field {
    position: relative;
    width: 100%;
    margin-bottom: 8px;
    height: 38px;
}

.input-field input {
    width: 100%;
    padding: 8px 34px;
    background-color: #fff; /* ← Fond blanc */
    border: 1px solid #ddd; /* ← Bordure gris clair */
    border-radius: 6px; /* ← Moins arrondi */
    font-size: 13px;
    color: #333;
    transition: border 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.input-field input:focus {
    outline: none;
    border-color: #0081ec;
    background-color: #ffffff;
}

.input-field input::placeholder {
    color: #aaa; /* ← Placeholder visible et doux */
    font-weight: 400;
}

.input-field .icon {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    color: #999;
    font-size: 13px;
}

.input-field .toggle-password {
    position: absolute;
    top: 50%;
    right: 0px;
    transform: translateY(-50%);
    color: #999;
    cursor: pointer;
    font-size: 16px;
    padding: 6px;
    line-height: 1;
}

/* ===========================
   👁️ Bouton afficher/masquer mot de passe
   =========================== */
.input-field .toggle-password {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  color: #aaa;
  cursor: pointer;
  font-size: 13px;
  padding: 5px;
  transition: color 0.3s ease, transform 0.25s ease;
}

.input-field .toggle-password:hover {
  color: #0081ec;
  /* transform: translateY(-50%) scale(1.15); */
}

.input-field .toggle-password.active {
  color: #0081ec;
}

/* Désactive le bouton "œil" natif sur tous les navigateurs */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
  display: none;
}

input[type="password"]::-webkit-credentials-auto-fill-button,
input[type="password"]::-webkit-textfield-decoration-container,
input[type="password"]::-webkit-textfield-decoration {
  display: none !important;
}

input[type="password"]::-webkit-inner-spin-button,
input[type="password"]::-webkit-clear-button {
  display: none;
}

/* Supprime l’icône dans Edge/Chromium */
input[type="password"]::-webkit-reveal {
  display: none !important;
}


/* Fixe pour les navigateurs qui utilisent autofill */
.input-field input:-webkit-autofill {
    background-color: #fff !important;
    box-shadow: 0 0 0px 1000px white inset !important;
    -webkit-box-shadow: 0 0 0px 1000px white inset !important;
    -webkit-text-fill-color: #333 !important;
}

/* Options supplémentaires */
.login-other-operate {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    width: 100%;
}

.login-other-operate .left,
.login-other-operate .right {
    flex: 1;
}

.login-other-operate .left {
    text-align: left;
    margin-bottom: 6px;
}

.login-other-operate .right {
    text-align: right;
    margin-bottom: 12px;
}

.remember-label.check-advanced {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    color: #333;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.remember-label.check-advanced input[type="checkbox"] {
    width: 18px;
    height: 18px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 2px solid #eaeaea;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    box-shadow: 0 6px 7px rgba(0, 0, 0, 0.10);
    flex: 0 0 18px;
    margin: 0;
}

.remember-label.check-advanced input[type="checkbox"]:hover {
    border-color: #1584ff;
}

.remember-label.check-advanced input[type="checkbox"]:focus {
    box-shadow: 0 0 0 3px rgba(21,132,255,0.3);
}

.remember-label.check-advanced input[type="checkbox"]:checked {
    background-color: #1584ff;
    border-color: #1584ff;
}

.remember-label.check-advanced input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 0px;
    left: 3.5px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.forgot-pwds {
    color: #0c84da;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
}

.forgot-pwds:hover {
    color: #0095ff;
    text-decoration: underline;
}
/* Bouton login */
.btn-login {
    width: 100%;
    margin-top: 10px;
    padding: 9px;
    max-width: 300px; /* ← Réduit */
    background: linear-gradient(135deg, #8f6a75, #079acfd6);
    border: none;
    border-radius: 7px;
    color: white;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.btn-login:hover {
    background: linear-gradient(135deg, #b07486, #14ace3d6);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
}

/* Démo */
.demo-btn {
    margin-top: 6px;
    text-align: center;
    font-size: 13px;
    left: 0;
}

.demo-btn a {
    text-decoration: none;
    color: #006dd3;
    font-size: 13px;
    display: inline-block;
    font-weight: 500;
    transition: color 0.2s;
}

.demo-btn a:hover {
    color: #0095ff;
}

.terms-policy {
    margin-top: 10px;
    text-align: center;
    font-size: 12px;
    color: #888;
    width: 100%;
    max-width: 300px;
}

.terms-policy a {
    color: #0c84da;
    text-decoration: none;
    font-weight: 500;
}

.terms-policy a:hover {
    text-decoration: underline;
}

/* Appstore playstore */

.login-app-download{
    display: flex;
    gap: 20px;
    justify-content: center;
    position: relative;
}

.store-wrapper {
  position: relative;
  cursor: pointer;
}

.store-wrapper img {
  width: 90px;
  transition: transform 0.3s ease;
}

.store-wrapper:hover img {
  transform: scale(1.05);
}

/* QR code popup */
.qr-popup {
  position: absolute;
  top: -140px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  padding: 6px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 20;
}

.qr-popup img {
  width: 100px;
  height: auto;
}

/* Hover effect */
.store-wrapper:hover .qr-popup {
  opacity: 1;
  pointer-events: auto;
}

/* Fond bg image login-left */
.login-left {
    flex: 1;
    background: url('/storage/logins/Trackgree-wallstreet-pro.png') no-repeat center center;
    background-size: cover;
    position: relative;
    background-position: center;
    background-size: 100% 100%;
    overflow: hidden;
    justify-content: center;
}

/* Image du marqueur superposée, centrée, animée */
.marker-animated {
    position: absolute;
    top: 65%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px; /* Ajustable */
    height: auto;
    z-index: 2; /* S'assure qu'elle est au-dessus */
    animation: markerFloat 3s ease-in-out infinite;
    pointer-events: none;
    opacity: 0.95;
    will-change: transform;
}

/* Animation douce haut-bas */
@keyframes markerFloat {
    0%   { transform: translate(-50%, -50%) translateY(0); }
    50%  { transform: translate(-50%, -50%) translateY(-30px); }
    100% { transform: translate(-50%, -50%) translateY(0); }
}




/* Animation car 1 left side */
/* Container relatif pour bien positionner le véhicule */
.login-left {
    position: relative;
    overflow: hidden;
}

/* Animation véhicule */
.vehicle-anim {
    position: absolute;
    width: 80px;
    top: 45%;
    left: -100px; /* démarre en dehors à gauche */
    animation: moveVehicle 10s ease-in-out infinite;
    opacity: 0;
}

/* Keyframes animation */
@keyframes moveVehicle {
    5% {
        transform: translate(20, 20);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    40% {
        transform: translate(90px, 190px) scale(1.15); /* oblique vers le bas-droite */
        opacity: 1;
    }
    80% {
        opacity: 0;
    }
    100% {
        transform: translate(0, 0);
        opacity: 0;
    }
}



/* Animation voiture 2 */
.vehicle-diagonal {
    position: absolute;
    width: 85px;
    top: 40%; /* démarre juste au-dessus du centre */
    right: -190px; /* légèrement en dehors du cadre */
    transform: scale(0.6);
    animation: driveDiagonal 8s ease-in-out infinite;
    opacity: 0;
    z-index: 2;
}

/* Animation diagonale descendante avec zoom + fondu */
@keyframes driveDiagonal {
    0% {
        transform: translate(0, 0) scale(0.2);
        opacity: 0;
    }
    15% {
        opacity: 1;
    }
    40% {
        transform: translate(-250px, 200px) scale(1.1); /* mouvement modéré diagonale */
        opacity: 1;
    }
    70% {
        opacity: 0.8;
    }
    100% {
        transform: translate(0, 0) scale(0.6);
        opacity: 0;
    }
}

/* Transition login to register */
/* Base cachée */
.form-section {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  position: absolute;
  width: auto;
  pointer-events: none;
}

.form-section.active {
  opacity: 1;
  max-height: 900px; /* Assez grand pour contenir tous les champs */
}

/* Quand on veut afficher */
.form-section.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  position: relative;
}

/* Register */
.styled-input {
  width: 100%;
  padding: 10px 34px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  color: #333;
  transition: border 0.3s ease, background-color 0.3s ease;
}

.styled-input:focus {
  outline: none;
  border-color: #56AB2F;
  background-color: #ffffff;
}

.styled-input::placeholder {
  color: #aaa;
  font-weight: 400;
}

.input-field .icon {
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  color: #999;
  font-size: 13px;
}

/* Move logo on top in register */
.logo-login {
  transition: transform 0.4s ease-in-out;
}

.logo-register-up {
  transform: translateY(-60px); 
}


/* Button Register */
  .btn-action {
    width: 100%;
    margin-top: 1px;
    padding: 9px;
    max-width: 300px; /* ← Réduit */
    background: linear-gradient(135deg, #8f6a75, #079acfd6);
    border: none;
    border-radius: 7px;
    color: white;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
  }

 .btn-action:hover {
    background: linear-gradient(135deg, #b07486, #14ace3d6);
    box-shadow: 0 3px 6px rgba(39, 63, 71, 0.08);
 }

  .form-options {
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
  }

  .switch-form {
    text-align: center;
    font-size: 0.85rem;
    margin-top: 20px;
    color: #666;
    opacity: 0.85;
  }

.switch-form a {
  color: #0074c6;
  text-decoration: none;
  font-weight: 500;
  margin-left: 5px;
  transition: color 0.3s ease;
}

.switch-form a:hover {
  color: #0095ff;
  text-decoration: underline;
}

.login-form,
.register-form {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.login-form.show,
.register-form.show {
  display: block;
  opacity: 1;
}

/* Footer page */
.login-footer{
    margin-top: 20px;
}

/* Toast register */
/* .loader {
    border: 2px solid #f3f3f3; 
    border-top: 2px solid #3498db; 
    border-radius: 50%;
    width: 14px;
    height: 14px;
    animation: spin 0.8s linear infinite;
    display: inline-block;
    margin-left: 8px;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} */

.hidden {
    display: none;
}

.toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

/* Position variantes */
.toast-top-center {
  left: 50%;
  transform: translateX(-50%);
  align-items: center;
}

.toast-top-right {
  right: 20px;
  align-items: flex-end;
}

.toast {
  position: relative; /* ou pas besoin de fixed ici */
  display: flex;
  align-items: center;
  /* background-color: #14973f; */
  color: white;
  padding: 12px 16px;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  font-size: 14px;
  min-width: 250px;
  max-width: 300px;
  gap: 10px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-10px);
  animation: fadeInDown 0.4s ease forwards, fadeOutUp 0.5s ease 4.5s forwards;
  z-index: 9999;
}

.toast-icon {
  font-size: 20px;
}


.toast-success {
  background: #14973f;
  color: #fff;
}

.toast-error {
  background: #91001b;
  color: #fff;
}

.toast-alert {
  background: #bb5e00;
  color: #fff;
}

.toast-info {
  background: #0061c3;
  color: #fff;
}
/* Apparition douce par le haut */
@keyframes fadeInDown {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Disparition douce vers le haut */
@keyframes fadeOutUp {
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

.error-msg {
  color: #d32f2f;
  font-size: 13px;
  margin-top: 4px;
}

.input-error {
  border: 1px solid #e53935 !important;
}


/* #toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
} */


.form-section {
  transition: opacity 0.3s ease;
  opacity: 0;
}

.form-section.show {
  display: block;
  opacity: 1;
}

/* Masquer le forgot par défaut */
.forgot-form:not(.show) {
  display: none;
}

.logo-forgot-down {
  transform: scale(0.85);
  transition: transform 0.3s ease;
}

/* All hidden defined */


.hidden-register {
  display: none !important;
}

.hidden-forgot {
  display: none !important;
}


/* Overlay du modal OTP */

/* Animation fade & slide */
@keyframes fadeSlideIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeSlideOut {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(20px);
  }
}

.otp-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.otp-modal-overlay.hidden {
    display: none !important;
}

/* Boîte du modal */
.otp-modal-box {
  background-color: #fff;
  width: 90%;
  max-width: 450px;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  position: relative;
  font-family: 'Segoe UI', sans-serif;
  animation: fadeSlideIn 0.3s ease forwards;
}

/* Fade-out override class (used temporarily before hiding) */
.otp-modal-box.fade-out {
  animation: fadeSlideOut 0.3s ease forwards;
}

/* Entête du modal */
.otp-modal-header {

  max-width: 100%; 
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.otp-modal-title {
             /* Prend toute la largeur dispo */
    display: block;              /* Important pour que ça s’applique bien */
    font-weight: 600;
    font-size: 15px;
    color: #333;
    margin: 0;
}

.otp-close-btn {
  background-color: #e0e0e0;
  border: none;
  font-size: 17px;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.otp-close-btn:hover {
  background-color: #00aaffb8;
  color: white;
}

/* Contenu du modal */
.otp-modal-content {
  text-align: center;
}

.otp-description {
  font-size: 12px;
  color: #555;
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
}

/* Inputs OTP */
.otp-input-wrapper {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.otp-input {
  width: 45px;
  height: 55px;
  font-size: 24px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 8px;
  transition: border-color 0.3s;
}

.otp-input:focus {
  outline: none;
  border-color: #0f93dfb8;
  box-shadow: 0 0 5px #4c8bafaa;
}

/* Texte et lien de renvoi */
.otp-resend-text {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

.otp-resend-link {
  color: #28aabedc;
  text-decoration: none;
  font-weight: 500;
}

.otp-resend-link:hover {
  text-decoration: underline;
}

/* Boutons d'action */
.otp-button-group {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.otp-validate-btn {
  background-color: #4caf50;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.otp-validate-btn:hover {
  background-color: #43a047;
}

.otp-cancel-btn {
  background-color: #f0f0f0;
  color: #333;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.otp-cancel-btn:hover {
  background-color: #ddd;
}

/* OTP Responsive */
@media (max-width: 480px) {
  .otp-modal-box {
    padding: 20px 20px;
  }

  .otp-input {
    width: 30px;
    height: 40px;
    font-size: 16px;
  }

  .otp-button-group {
    flex-direction: column;
  }

  .otp-button-group button {
    width: 100%;
  }
}


/* Design new password modal */
.password-reset-container {
  width: 80%;
  margin: 0 auto;
  transform: scale(0.95);
  padding: 5px;
}

.password-reset-header {
  white-space: nowrap;         /* Empêche le retour à la ligne */
  overflow: hidden;            /* Cache ce qui déborde */
  text-overflow: ellipsis; 
  width: 100%;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap:5px;
}

.header-left-newpwd {
  white-space: nowrap;         /* Empêche le retour à la ligne */
  overflow: hidden;            /* Cache ce qui déborde */
  text-overflow: ellipsis;
  width: 100%;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 16px;
  color: #333;
  
}

.icon-lock, .icon-user {
  font-size: 13px;
  color: #317a19;
}

.separator {
  color: #56AB2F;
  font-weight: bold;
}

.user-email-pwd{
  white-space: nowrap;         /* Empêche le retour à la ligne */
  overflow: hidden;            /* Cache ce qui déborde */
  text-overflow: ellipsis;     /* Ajoute "..." à la fin */
  max-width: 90%;
  color: #317a19;
  font-weight: 500;
}

.header-label-newpwd {
 max-width: 90%;
  font-weight: 500;
  font-size: 20px;
  font-weight: bold;
}

.header-right-newpwd .datetime {
    
  font-size: 11px;
  color: #888;
  font-style: italic;
}

.logo-new-pass {
  display: flex;
  height: 35px;
  margin-bottom: 5px;

}

/* Logo dans l'entête */
.otp-logo {
  height: 26px;
  margin-right: 10px;
}


/* Conteneur aligné du logo + titre */
.otp-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  max-width: 100%;
}

/* Séparateur fin */
/* .otp-separator {
  height: 1px;
  background: #e2e2e2;
  margin-bottom: 15px;
  margin-top: -10px;
} */

.otp-title-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 14px;
  color: #333;
}

.otp-label {
  font-weight: 400;
}

.otp-separator-label {
  color: #4caf50;
  font-weight: 400;
}





.header-newpass {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgb(206, 235, 247), #ffffff);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo-new-pass {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid #f5fff2;
  background-color: #fff;
  transition: transform 0.3s ease;
}

.logo-new-pass:hover {
  transform: scale(1.05);
}

.header-title-pass {
  font-size: 18px;
  font-weight: 600;
  color: #004602;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.header-title-pass:hover {
  transform: scale(1.04);
  color: #096714;
}

.applyNewPassword {
  width: 100%;
  max-width: 360px;
}


/* Loader circle personnalisée */
.btn-loading {
  pointer-events: none;
  opacity: 0.7;
  position: relative;
}

.btn-loading .loader-spinner {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border: 2px solid transparent;
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loader-circle {
  width: 14px;
  height: 14px;
  border: 2px solid white;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}

.loader-centered {
  display: block;
  margin: 0 auto;
}






/* ===========================
   📱 RESPONSIVE MOBILE DESIGN
   =========================== */
@media (max-width: 1024px) {
  .new-login-view {
    min-width: unset;
    width: 100%;
    height: auto;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 0;
  }

  .login-content {
    flex-direction: column;
    width: 100%;
    max-width: 420px;
    height: auto;
    min-height: 100vh;
    border-radius: 0;
    box-shadow: none;
  }

  .login-left {
    display: none; /* On cache l’image décorative */
  }

  .login-right {
    width: 100%;
    padding: 20px 25px 60px;
    justify-content: flex-start;
  }

  .logo-login img {
    width: 130px;
  }

  .login-box-fields {
    max-width: 100%;
    width: 100%;
  }

  .input-field input {
    font-size: 13px;
    padding: 8px 36px;
  }

  .btn-login,
  .btn-action {
    font-size: 14px;
    padding: 12px;
    border-radius: 8px;
  }

  .switch-form {
    margin-top: 25px;
    font-size: 12px;
  }

  .terms-policy {
    font-size: 12px;
    padding: 0 20px;
    padding-top: 8px;
  }

  .login-footer {
    margin-top: 40px;
  }

  .login-app-download {
    /* flex-direction: column; */
    gap: 10px;
  }

  .store-wrapper img {
    width: 90px;
  }

  .demo-btn {
    margin-top: 15px;
  }

  /* OTP modal déjà fluide, on ajuste juste les marges */
  .otp-modal-box {
    max-width: 95%;
  }
}

/* ✅ Très petit écran */
@media (max-width: 480px) {
  body {
    overflow-y: auto;
  }

  .login-right {
    padding: 20px 15px;
  }

  .logo-login img {
    width: 110px;
  }

  .input-field input {
    font-size: 13px;
  }

  .btn-login, .btn-action {
    font-size: 14px;
  }

  .terms-policy {
    font-size: 11px;
  }

  .otp-modal-box {
    padding: 15px;
  }

  .otp-input {
    width: 28px;
    height: 36px;
  }

  .forgot-pwds {
    color: #0c84da;
    text-decoration: none;
    font-weight: 500;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
}

.remember-label.check-advanced {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    color: #333;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.remember-label.check-advanced input[type="checkbox"] {
    width: 16px;
    height: 17px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 2px solid #eaeaea;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    box-shadow: 0 6px 7px rgba(0, 0, 0, 0.10);
    flex: 0 0 18px;
    margin: 0;
}

.remember-label.check-advanced input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 4px;
    width: 4px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

}

.mobile-bg {
  display: none;
}

@media (max-width: 768px) {
  .mobile-bg {
    display: block;
    position: fixed;
    inset: 0;
    background: linear-gradient(160deg, #f7f9fb 0%, #ecf6ff 100%);
    z-index: -2;
  }
}






/* ===========================
   🎯 HEADER IMAGE RESPONSIVE
   =========================== */

/* 🔹 Par défaut (desktop) → complètement masqué */
.login-header-banner {
  display: none;
}

/* 🔹 Activation uniquement en responsive */
@media (max-width: 1024px) {
  .login-header-banner {
    display: block;
    position: relative;
    width: 100%;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  }

  .login-header-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
  }

  /* Overlay dégradé bas */
  .banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.35), rgba(0,0,0,0));
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .login-header-banner:hover .banner-overlay {
    opacity: 0.45;
  }
}

/* 🔹 Ajustement tablette / mobile moyen */
@media (max-width: 768px) {
  .login-header-banner {
    height: 200px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .banner-overlay {
    height: 70%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.25), transparent);
  }
}

/* 🔹 Très petit écran */
@media (max-width: 480px) {
  .login-header-banner {
    height: 180px;
    border-radius: 8px;
    margin-bottom: 15px;
  }
}


/* ===========================
   📱 Responsive adjustments
   =========================== */
@media (max-width: 768px) {
  .login-header-banner {
    height: 200px; /* hauteur réduite mobile */
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .login-header-banner img {
    border-radius: 10px;
  }

  .banner-overlay {
    height: 70%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.25), transparent);
  }
}

@media (max-width: 480px) {
  .login-header-banner {
    height: 180px;
    border-radius: 8px;
    margin-bottom: 15px;
  }
}




.register-dropdown {
  position: relative;
  cursor: pointer;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

.register-dropdown:hover {
  border-color: #0cbcc4;
}

.register-dropdown-options {
  display: none;
}

.dynamic-country-options li {
  padding: 8px 12px;
  list-style: none;
  font-size: 14px;
}

.dynamic-country-options li:hover {
  background: #f1f5f9;
}










/* 🔹 Zone scrollable interne du formulaire Register */
.register-scroll-area {
  max-height: 420px;             /* adapte selon ton layout */
  overflow-y: auto;
  margin-bottom: 15px;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: #0cbcc4 #f3f4f6;
}

/* Chrome / Edge scrollbar */
.register-scroll-area::-webkit-scrollbar {
  width: 6px;
}

.register-scroll-area::-webkit-scrollbar-thumb {
  background-color: #0cbcc4;
  border-radius: 6px;
}

.register-scroll-area::-webkit-scrollbar-track {
  background-color: #f3f4f6;
}

/* Ajoute un petit effet interne subtil */
.register-scroll-area {
  background: #fff;
  border-radius: 8px;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.05);
}




/* 🔹 Dropdown geocoding */
.geo-suggestions {
  list-style: none;
  margin: 6px 0 0;
  padding: 6px 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  position: absolute;
  width: calc(100% - 48px);
  max-height: 220px;
  overflow-y: auto;
  z-index: 9999;
  display: none;
  opacity: 0;
  transform: translateY(-5px);
  transition: all 0.2s ease;
}

.geo-suggestions.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.geo-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 13.5px;
  color: #555;
  transition: background 0.2s ease, color 0.2s ease;
}

.geo-item i {
  color: #f39c12;
  font-size: 14px;
}

.geo-item:hover {
  background: #f9fafb;
  color: #111;
  font-weight: 600;
}

.geo-item:hover i {
  color: #0cbcc4;
}

.no-results {
  text-align: center;
  padding: 10px;
  font-size: 13px;
  color: #aaa;
}

.location-autocomplete {
  position: relative;
}

.add-primary-btn {
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    color: white;
    font-weight: 600;
    font-size: 12px;
    border: none;
    border-radius: 6px;
    padding: 8px 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.25);
    width: 100%;
    text-align: center;
}

.add-primary-btn i {
  font-size: 11px;
  background: rgba(255, 255, 255, 0.25);
  padding: 3px;
  border-radius: 50%;
  transition: transform 0.25s ease;
}

/* Hover effects */
.add-primary-btn:hover {
  background: linear-gradient(135deg, #3b82f6, #2563eb); /* plus intense */
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}

.add-primary-btn:hover i {
  background: rgba(255, 255, 255, 0.35);
}

/* Active (click) effect */
.add-primary-btn:active {
    transform: scale(0.97);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3);
}

        /* Optional: focus ring accessibility */
        /* .add-primary-btn:focus {
        outline: 2px solid rgba(59, 130, 246, 0.5);
        outline-offset: 2px;
        } */


        /* =========================================================
   📱 Mobile Header Brand - Trackgree
========================================================= */

.login-mobile-brand {
  display: none;
}

@media (max-width: 1024px) {
  .login-header-banner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    width: 100%;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    padding: 0 18px;
    box-shadow:
      0 10px 26px rgba(15, 23, 42, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.16);
  }

  .login-header-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    transition: transform 0.6s ease;
  }

  .banner-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background:
      linear-gradient(90deg, rgba(2, 6, 23, 0.72), rgba(15, 23, 42, 0.34), rgba(15, 23, 42, 0.12)),
      linear-gradient(to top, rgba(0, 0, 0, 0.30), rgba(0, 0, 0, 0));
    pointer-events: none;
    z-index: 1;
  }

  .login-mobile-brand {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: calc(100% - 10px);
    animation: loginBrandIn 0.55s cubic-bezier(.2, .9, .2, 1) both;
  }

  .login-mobile-brand-icon {
    width: 54px;
    height: 54px;
    min-width: 54px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.20), rgba(255, 255, 255, 0.06));
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow:
      0 12px 30px rgba(0, 0, 0, 0.28),
      0 0 24px rgba(96, 165, 250, 0.24),
      inset 0 1px 0 rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .login-mobile-brand-icon img {
    width: 37px;
    height: 37px;
    object-fit: contain;
    filter:
      drop-shadow(0 2px 6px rgba(255, 255, 255, 0.28))
      drop-shadow(0 0 10px rgba(96, 165, 250, 0.28));
  }

  .login-mobile-brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    line-height: 1.05;
  }

  .login-mobile-brand-text .brand-name {
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.2px;
    text-shadow:
      0 2px 8px rgba(0, 0, 0, 0.36),
      0 0 18px rgba(96, 165, 250, 0.34);
    white-space: nowrap;
  }

  .login-mobile-brand-text .brand-subtitle {
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    text-shadow:
      0 1px 6px rgba(0, 0, 0, 0.38),
      0 0 14px rgba(59, 130, 246, 0.24);
    white-space: nowrap;
  }

  .login-header-banner:hover .login-header-cover {
    transform: scale(1.04);
  }
}

@media (max-width: 768px) {
  .login-header-banner {
    height: 200px;
    padding: 0 15px;
    border-radius: 11px;
    margin-bottom: 20px;
  }

  .login-mobile-brand {
    gap: 10px;
  }

  .login-mobile-brand-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 14px;
  }

  .login-mobile-brand-icon img {
    width: 33px;
    height: 33px;
  }

  .login-mobile-brand-text .brand-name {
    font-size: 21px;
  }

  .login-mobile-brand-text .brand-subtitle {
    font-size: 10px;
    letter-spacing: 1.5px;
  }
}

@media (max-width: 480px) {
  .login-header-banner {
    height: 192px;
    padding: 0 14px;
    border-radius: 10px;
    margin-bottom: 16px;
  }

  .login-mobile-brand-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 13px;
  }

  .login-mobile-brand-icon img {
    width: 30px;
    height: 30px;
  }

  .login-mobile-brand-text .brand-name {
    font-size: 19px;
  }

  .login-mobile-brand-text .brand-subtitle {
    font-size: 9px;
    letter-spacing: 1.25px;
  }
}

@keyframes loginBrandIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}