@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&family=Noto+Sans+Myanmar&family=Noto+Sans+Khmer&display=swap');

div{
    width: 600px;
    height: 235px;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    margin-top: 8%;
    margin-left: 16%;
    margin-bottom: 8%;
}
.google{
    width: 30px;
    padding-right: 20px;
    padding-top: 15px;
    padding-left: 20px;
}

.text{
    font-weight: 200;
    font-family: Roboto;
    margin: 0px;
    font-size: 25px;
    margin-top: 10px;
    margin-left: 18px;
    color: #1f1f1f;
}
p{
    color: #1f1f1f;
    font-family: Roboto;
    font-size: 10px;
    font-weight: 200;
    margin-left: 18px;
    margin-bottom: 0px;
    width:200px;
}

.single{
    position: relative;
    width: 250px;
    height: auto;
    margin-top: -45px;
    margin-left: 300px;
    font-family: Roboto;
}

.single label {
    position: absolute;
    top: 50%;
    left: 5px;
    transform: translateY(-50%);
    font-size: 11px;
    pointer-events: none;
    color: rgb(130, 130, 130);
    padding: 0 4px;
    background: white;
    transition: all 0.2s ease;
}

.single input {
    width: 100%;
    height: 35px;
    color: #1f1f1f;
    font-size: 10px;
    padding: 0 12px;
    border: 1.2px solid rgb(180, 185, 185);
    background: transparent;
    outline: none;
    border-radius: 4px;
    box-sizing: border-box;
}

.single input:focus {
    border-color: rgb(11,87,208);
    border-width: 2px;
}

.single input:focus ~ label{
    color: rgb(11,87,208);
}

.single input:focus ~ label,
.single input:valid ~ label {
    top: 0;
    font-size: 8px;
    /*color: rgb(11,87,208);*/
}

.show-password{
    width: auto;
    height: auto;
    background-color: transparent;
    box-shadow: none;
    border-radius: 0;
    margin: 10px 0 0 300px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: Roboto;
    font-size: 10px;
    color: #1f1f1f;
}

.show-password label {
    cursor: pointer;
    font-size: 11px;
    color: #1f1f1f;
}


/* Error state */
.error-msg {
    display: none;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    margin-left: 300px;
    font-size: 8px;
    color: #d93025;
    font-family: Roboto, sans-serif;
    background: transparent;
}

.single.error input {
    border-color: #d93025;
    border-width: 2px;
    background: transparent;
}

.single.error input:focus {
    border-color: #d93025;
    color: #d93025;
}

.single.error input:focus ~ label{
    color: #d93025;
}


.single.error + .error-msg {
    display: flex;
}


body{
    zoom:150%;
}    

.con{
    color: rgb(11,87,208);
    font-family: arial;
    margin-left: 250px;
}



.create{
    color: rgb(11,87,208);
    border-radius: 15px;
    background-color: white;
    border-color: white;
    border-style: solid;
    font-size: 10px;
    cursor: pointer;
    transition: transform 120ms ease, box-shadow 120ms ease;
    margin-bottom: 8%;
    will-change: transform;
}

.next{
    background-color: rgb(11,87,208);
    color: white;
    padding: 3px;
    border-radius: 15px;
    border-color: rgb(11,87,208);
    border-style: solid;
    font: 20px;
    width: 60px;
    font-size: 10px;
    cursor: pointer;
    transition: transform 120ms ease, box-shadow 120ms ease;
    margin-bottom: 8%;
    will-change: transform;
}


@media (min-width: 540px){
    .btn-forgot {
        display: inline-block;
        margin-top: 8%;
        margin-left: 63%;
    }
}


/* Remove underline on links used as buttons/UI; keep underline only for the `.des` link */
a{
    text-decoration: none;
    color: inherit;
}

/* `.des` link: no underline by default, underline on hover/focus */
.des a{
    text-decoration: none;
    color: rgb(11,87,208);
}
.des a:hover,
.des a:focus{
    text-decoration: underline;
    color: rgb(11,87,208);
}

/* Press effect for create and next buttons */
.create:active,
.next:active{
    transform: translateY(1px) scale(0.97);
    box-shadow: none;
}
.create:focus-visible,
.next:focus-visible{
    outline: 3px solid rgba(11,87,208,0.18);
    outline-offset: 2px;
}

/* ===== LOADER BAR ===== */
.loader-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: #4a90d9;
    border-radius: 0 2px 2px 0;
    z-index: 9999;
    display: none;
    box-shadow: 0 0 8px rgba(74,144,217,0.6);
}

.loader-bar.running {
    display: block;
    animation: loaderMove 1.6s ease-in-out infinite;
}

@keyframes loaderMove {
    0%   { left: 0;    width: 0;    opacity: 1; }
    40%  { left: 0;    width: 60%;  opacity: 1; }
    80%  { left: 40%;  width: 60%;  opacity: 1; }
    100% { left: 100%; width: 0;    opacity: 0; }
}

/* ===== MOBILE (≤540px) — PC inchangé ===== */
@media (max-width: 540px) {

    .show-password {
        margin-left: 0;
        display: block;
        margin-top: 12px;
    }

    body {
        zoom: 1;
        background-color: #f1f3f4;
    }

    .google{
        width: 30px;
        padding-right: 20px;
        padding-top: 15px;
        padding-left: 5px;
    }   

    .card {
        width: 100%;
        min-height: 100dvh;
        height: auto;
        border-radius: 0;
        margin: 0;
        box-shadow: none;
        padding: 24px 20px 32px;
        box-sizing: border-box;
    }

    .text {
        font-size: 22px;
        margin-left: 0;
    }

    p {
        width: 100%;
        margin-left: 0;
        font-size: 12px;
    }

    .single {
        width: 100%;
        margin-left: 0;
        margin-top: 20px;
    }

    .error-msg {
        margin-left: 0;
        width: 100%;
    }


    .forgot {
        margin-left: 0;
        display: block;
        margin-top: 12px;
    }

    .des {
        width: 100%;
        margin-left: 0;
        margin-top: 30px;
    }

    .con {
        margin-left: 0;
    }

    .create {
        margin-left: 0;
        margin-top: 55px;
        font-size: 12px;
    }

    .next {
        float: right;
        margin-top: 50px;
        width: 80px;
        padding: 8px 0;
        font-size: 12px;
    }
}