body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #f5f8ff, #e8eefb);
    min-height: 100vh;
	background:
        radial-gradient(circle at top left,#4f6aff22,transparent 35%),
        radial-gradient(circle at bottom right,#22385722,transparent 35%),
        #eef2fb;
}

.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
	padding-top:40px;
}

.logo {
    font-size: 2.5rem;
    font-weight: 700;
    color: #223857;
    letter-spacing: 2px;	
}

.logo span {
    color: #4f6aff;
}

.separator {
    width: 180px;
    border: none;
    height: 4px;
    background: #4f6aff;
    border-radius: 10px;
    margin: 20px 0 40px;
}

.login-card {
    width: 95%;
    max-width: 420px;
    
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 40px rgba(34, 56, 87, 0.12);
	background:rgba(255,255,255,0.75);
    backdrop-filter:blur(10px);
    border:1px solid rgba(255,255,255,0.5);
}

.input-field {
	height:52px;
    width: 100%;
    padding: 16px 18px;
    margin-bottom: 20px;
    border: 2px solid #e6ebf5;
    border-radius: 12px;
    font-size: 16px;
    transition: 0.3s;
    box-sizing: border-box;
}

.input-field:focus {
    outline: none;
    border-color: #4f6aff;
    box-shadow: 0 0 0 4px rgba(79, 106, 255, 0.15);
}

.forgot-password {
    display: block;
    text-align: center;
    color: #4f6aff;
    cursor: pointer;
    text-decoration: none;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.forgot-password:hover {
    text-decoration: underline;
}

.login-button {
	height:52px;
    width: 100%;    
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #4f6aff, #3f51b5);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 106, 255, 0.35);
}

.install-button {
    position: fixed;
    right: 15px;
    bottom: 30px;
    height: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 18px;
    border: none;
    border-radius: 12px;
    background: white;
    box-shadow: 0 5px 20px rgba(0,0,0,.1);
    cursor: pointer;
	z-index:100;
}

.install-button img {
    height: 22px;
}

.logo-footer {
    position: fixed;
    right: 25px;
    bottom: 10px;
    height: 45px;
}




	
/* Overlay */

.modalLoadIndex {
    display: none; /* restera masqué au démarrage */

    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    z-index: 99999;

    background: rgba(34,56,87,.35);
    backdrop-filter: blur(6px);

    justify-content: center;
    align-items: center;
}

/* Carte centrale */

.modalLoadIndex-content {

    width: 320px;
    max-width: 90%;

    margin: auto;

    background: rgba(255,255,255,.95);

    border-radius: 24px;
    padding: 35px;

    text-align: center;

    box-shadow:
        0 10px 30px rgba(0,0,0,.10),
        0 20px 60px rgba(0,0,0,.20);
    margin-top: 100px;
}

/* Animation ouverture */

@keyframes popin {

    from{
      opacity:0;
        transform:translateY(15px) scale(.95);
   }

    to{
        opacity:1;
       transform:translateY(0) scale(1);
    }
}

/* Loader moderne */

.loaderIndex {

    width: 70px;
    height: 70px;

    margin: auto auto 20px;

    border: 5px solid #e8ecf8;
    border-top: 5px solid #4f6aff;

    border-radius: 50%;

    animation: spin .9s linear infinite;
}
.loaderLogo{

    width:90px;
    height:90px;

    margin:auto auto 20px;

    border-radius:50%;

    display:flex;
    align-items:center;
    justify-content:center;

    font-weight:700;
    color:#223857;

    position:relative;
}

.loaderLogo::before{

    content:"";

    position:absolute;
    inset:-6px;

    border-radius:50%;

    border:5px solid transparent;
    border-top-color:#4f6aff;

    animation:spin 1s linear infinite;
}

.loaderLogo span{
    color:#4f6aff;
}
@keyframes spin {

    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.modalLoadIndex-content h3 {

    margin: 0;
    color: #223857;
    font-size: 1.2rem;
    font-weight: 600;
}

.loadingText {

    display: block;
    margin-top: 10px;

    color: #68768d;
    font-size: .95rem;
    line-height: 1.5;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}




.modalMdp {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
}

.modalMdp-content {
    width: 550px;
    max-width: 95%;
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    animation: modalOpen .25s ease;
}

@keyframes modalOpen {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-logo {
    font-size: 3rem;
    font-weight: 700;
    color: #223857;
    margin-bottom: 20px;
}

.modal-logo span {
    color: #4f6aff;
}

.modal-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #223857;
    margin-bottom: 10px;
}

.modal-subtitle {
    color: #555;
    line-height: 1.5;
    margin-bottom: 30px;
}

.buttonMdp {
    min-width: 180px;
    height: 48px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg,#4f6aff,#3f51b5);
    color: white;
    font-weight: 600;
    cursor: pointer;
    margin: 5px;
    transition: .25s;
}

.buttonMdp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79,106,255,.3);
}

.buttonCancel {
    background: #eef1f7;
    color: #223857;
}

.buttonCancel:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

.form-group {
    margin-bottom: 18px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #223857;
}

.form-group input {
    width: 100%;
    height: 48px;
    border: 2px solid #e5e9f4;
    border-radius: 12px;
    padding: 0 15px;
    box-sizing: border-box;
    transition: .3s;
}

.form-group input:focus {
    outline: none;
    border-color: #4f6aff;
    box-shadow: 0 0 0 4px rgba(79,106,255,.12);
}

.button-zone {
    margin-top: 25px;
    text-align: center;
}



/* ---------- Responsive général ---------- */

*{
    box-sizing:border-box;
}

body{
    margin:0;
    padding:15px;
}

/* ---------- Modale ---------- */

.modalMdp{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.45);
    backdrop-filter:blur(4px);
    display:none;
    justify-content:center;
    align-items:center;
    padding:15px;
}

.modalMdp-content{
    width:100%;
    max-width:550px;
    max-height:90vh;
    overflow-y:auto;
    background:white;
    border-radius:20px;
    padding:30px;
    box-shadow:0 20px 50px rgba(0,0,0,.2);
}

/* ---------- Logo ---------- */

.modal-logo{
    text-align:center;
    font-size:3rem;
    font-weight:700;
    color:#223857;
}

.modal-logo span{
    color:#4f6aff;
}

/* ---------- Formulaire ---------- */

.form-group{
    margin-bottom:18px;
}

.form-group label{
    display:block;
    margin-bottom:6px;
    font-weight:600;
    color:#223857;
}

.form-group input{
    width:100%;
    height:50px;
    border:2px solid #e6ebf5;
    border-radius:12px;
    padding:0 15px;
    font-size:16px;
}

.form-group input:focus{
    outline:none;
    border-color:#4f6aff;
    box-shadow:0 0 0 4px rgba(79,106,255,.15);
}

/* ---------- Boutons ---------- */

.button-zone{
    display:flex;
    gap:10px;
    justify-content:center;
    flex-wrap:wrap;
}

.buttonMdp{
    min-width:180px;
    height:50px;
    border:none;
    border-radius:12px;
    background:linear-gradient(135deg,#4f6aff,#3f51b5);
    color:white;
    font-weight:600;
    cursor:pointer;
}

.buttonCancel{
    background:#e9edf5;
    color:#223857;
}

/* ---------- MOBILE ---------- */

@media (max-width: 768px){

    .modalMdp-content{
        padding:20px;
        border-radius:18px;
    }

    .modal-logo{
        font-size:2.2rem;
    }

    .modal-title{
        font-size:1.2rem;
    }

    .modal-subtitle{
        font-size:.95rem;
        line-height:1.5;
    }

    .button-zone{
        flex-direction:column;
    }

    .buttonMdp{
        width:100%;
        min-width:unset;
    }

	 .login-container{
        justify-content:flex-start;
        padding-top:50px;
    }

    .separator{
        margin:10px 0 25px;
    }

    .login-card{
        margin-top:20px;
    }
}


/* ---------- PETITS SMARTPHONES ---------- */

@media (max-width:480px){

    .modalMdp-content{
        padding:15px;
    }

    .modal-logo{
        font-size:1.8rem;
    }

    .form-group input{
        height:46px;
        font-size:16px; /* évite le zoom iPhone */
    }

    .buttonMdp{
        height:48px;
        font-size:14px;
    }
}


#logmdp{
    width:600px;
    max-width:95%;
    
}

.Saisie,
.SaisieMpd{
    width:100%;
}

@media (max-width:768px){

    #logmdp{
        width:100%;
    }

    .logo{
        font-size:2.3rem;
    }

    .buttonValide{
        width:100%;
    }

    .Bvideo{
        right:15px;
        bottom:15px;
        transform:scale(.9);
    }
}

