/* ==========================================================
   MedTrix Authentication Popup
   Version: 2.0
========================================================== */

:root{

    --mt-primary:#2C4A92;
    --mt-primary-hover:#223c79;

    --mt-secondary:#F58220;
    --mt-secondary-hover:#dd6f10;

    --mt-text:#2d3748;
    --mt-light:#6b7280;

    --mt-border:#dbe3ef;

    --mt-bg:#ffffff;

    --mt-radius:18px;

    --mt-shadow:0 30px 70px rgba(0,0,0,.20);

}

/*==========================================================
Body
==========================================================*/

body.auth-popup-open{

    overflow:hidden;

}

/*==========================================================
Overlay
==========================================================*/

#medtrixAuthModal{

    position:fixed;

    inset:0;

    z-index:999999;

    display:none;

    align-items:center;

    justify-content:center;

    padding:30px;

    background:rgba(15,23,42,.55);

    backdrop-filter:blur(8px);

    -webkit-backdrop-filter:blur(8px);

}

/*==========================================================
Popup
==========================================================*/

.medtrix-modal{

    position:relative;

    width:100%;

    max-width:560px;

    max-height:90vh;

    overflow-y:auto;

    background:var(--mt-bg);

    border-radius:22px;

    box-shadow:var(--mt-shadow);

    transform:translateY(20px);

    opacity:0;

    will-change:transform,opacity;

}

/* Custom Scrollbar */

.medtrix-modal::-webkit-scrollbar{

    width:8px;

}

.medtrix-modal::-webkit-scrollbar-thumb{

    background:#d6dde9;

    border-radius:20px;

}

.medtrix-modal::-webkit-scrollbar-track{

    background:transparent;

}


/*==========================================================
Forgtot password & remember
==========================================================*/
.auth-options{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin:10px 0 25px;

    gap:15px;

}

.remember-me{

    display:flex;

    align-items:center;

    gap:10px;

}

.remember-me label{

    margin:0;

    cursor:pointer;

}

.forgot-password{

    margin:0;

}

.forgot-password a{

    color:var(--mt-primary);

    font-weight:500;

    text-decoration:none;

}

.forgot-password a:hover{

    text-decoration:underline;

}

/*==========================================================
Header
==========================================================*/

.auth-header{

    text-align:center;

    padding:42px 40px 25px;

}

.auth-logo{

    display:block;

    margin:0 auto 18px;

    max-width:150px;

    height:auto;

}

.auth-header h2{

    margin:0;

    color:var(--mt-primary);

    font-size:32px;

    line-height:1.2;

    font-weight:700;

}

.auth-header p{

    margin:12px 0 0;

    color:var(--mt-light);

    font-size:15px;

}

/*==========================================================
Close Button
==========================================================*/

.close-modal{

    position:absolute;

    top:20px;

    right:20px;

    width:46px;

    height:46px;
    
    display: flex;
    
    align-items: center;
    
    justify-content:center;

    border:none;

    border-radius:50%;

    background:var(--mt-primary);

    cursor:pointer;

    font-size:24px;

    line-height:1;

    transition:.25s ease;

}

.close-modal:hover{

    background:var(--mt-primary-hover);

    color:#fff;
    
    transform:rotate(90deg);

}

/*==========================================================
Tabs
==========================================================*/

.auth-tabs{

    display:flex;

    margin:0 35px 30px;

    border:1px solid #dbe3ef;

    border-radius:14px;

    overflow:hidden;

    background:#fff;

}

.auth-tab{

    flex:1;

    height:60px;

    border:none;

    background:transparent;

    color:#64748b;

    font-size:18px;

    font-weight:600;

    cursor:pointer;

    transition:.25s;

    position:relative;

}

.auth-tab:hover{

    background:#f8fafc;

}

.auth-tab.active{

    color:var(--mt-primary);

    background:#fff;

}

.auth-tab.active::after{

    content:"";

    position:absolute;

    left:0;

    right:0;

    bottom:0;

    height:4px;

    background:var(--mt-primary);

}

/*==========================================================
Content
==========================================================*/

.auth-content{

    padding:0 35px 35px;

}

/*==========================================================
Loading
==========================================================*/

.auth-loading{

    display:none;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    padding:55px 30px;

}

.auth-loading img{

    width:48px;

    height:48px;

}

.auth-loading p{

    margin-top:18px;

    color:var(--mt-light);

    font-size:14px;

}

/*==========================================================
Success
==========================================================*/

.auth-success{

    display:none;

    text-align:center;

    padding:55px 30px;

}

.auth-success-icon{

    width:90px;

    height:90px;

    margin:0 auto 25px;

}

.auth-success h3{

    margin:0 0 12px;

    color:#16a34a;

    font-size:26px;

}

.auth-success p{

    margin:0;

    color:var(--mt-light);

}

/*==========================================================
Responsive
==========================================================*/

@media (max-width:767px){

    #medtrixAuthModal{

        padding:15px;

    }

    .medtrix-modal{

        max-width:100%;

        max-height:95vh;

        border-radius:18px;

    }

    .auth-header{

        padding:30px 20px 18px;

    }

    .auth-header h2{

        font-size:27px;

    }

    .auth-tabs{

        padding:0 20px 20px;

    }

    .auth-content{

        padding:0 20px 25px;

    }

    .close-modal{

        top:12px;

        right:12px;

    }

}