/* ==========================================
   GOOGLE FONT
========================================== */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");


/* ==========================================
   ROOT VARIABLES (DEFAULT DARK MODE)
========================================== */

:root{

    /* Backgrounds */
    --bg-body:#10141B;
    --bg-card:#181E26;
    --bg-input:#151A21;
    --gradient-devider-1: linear-gradient(194deg, rgba(241, 245, 249, 1) 0%, rgba(241, 245, 249, 0) 100%);
    --gradient-devider-2: linear-gradient(14deg, rgba(241, 245, 249, 1) 0%, rgba(241, 245, 249, 0) 100%);
    /* Text */
    --text-primary:#ffffff;
    --text-secondary:#B8BDC5;
    --text-placeholder:#6F7680;

    /* Borders */
    --border-color:#26303C;

    /* Brand */
    --primary:#C45962;
    --primary-hover:#B84C56;

    /* Buttons */
    --google-btn:rgba(13,13,13,0.7);
    --google-btn-border:#18212E;

    /* Radius */
    --radius-sm:6px;
    --radius-md:10px;
    --radius-lg:14px;

    /* Transition */
    --transition:all .3s ease;

    /* Shadow */
    --shadow-card:0 20px 40px rgba(0,0,0,.18);
    --logo-filter:brightness(0) invert(1);

}


/* ==========================================
   LIGHT MODE VARIABLES
========================================== */

[data-theme="light"]{

    --bg-body:url(../images/login/bg-login-light-them.webp);
    --bg-card:#ffffff;
    --bg-input:#ffffff;

    --text-primary:#222222;
    --text-secondary:#6B7280;
    --text-placeholder:#9CA3AF;
    --gradient-devider-1: linear-gradient(194deg, rgba(241, 245, 249, 1) 0%, rgba(241, 245, 249, 0) 100%);
    --gradient-devider-2: linear-gradient(14deg, rgba(241, 245, 249, 1) 0%, rgba(241, 245, 249, 0) 100%);
    --border-color:#E5E7EB;

    --google-btn:rgba(255,255,255,0.02);
    --google-btn-border:#E2E8F0;
    --logo-filter:none;
    --shadow-card:0 12px 30px rgba(0,0,0,.05);

}


/* ==========================================
   RESET CSS
========================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}


*::before,
*::after{
    box-sizing:border-box;
}


html{
    scroll-behavior:smooth;
    -webkit-text-size-adjust:100%;
}


body{

    font-family:'Inter', sans-serif;

    background:var(--bg-body);

    color:var(--text-primary);

    min-height:100vh;

    line-height:1.5;

    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;

    transition:var(--transition);

}


img{
    max-width:100%;
    display:block;
    border-style:none;
}


a{
    text-decoration:none;
    color:inherit;
}


button,
input{
    font-family:inherit;
    border:none;
    outline:none;
    background:none;
}


/* ==========================================
   PAGE BACKGROUND
========================================== */

.login-page{

    min-height:100vh;

    display:flex;
    align-items:center;
    justify-content:center;

    padding:30px;

    position:relative;

    overflow:hidden;

}


/* stars background */

.login-page::before{

    content:"";

    position:absolute;
    inset:0;

    background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.18) 2px, transparent 3px),
    radial-gradient(circle at 80% 40%, rgba(255,255,255,.14) 2px, transparent 3px),
    radial-gradient(circle at 40% 80%, rgba(255,255,255,.10) 2px, transparent 3px);

    background-size:400px 400px;

    pointer-events:none;
}
/* ==========================================
   PAGE BACKGROUND
========================================== */

.login-page{

    min-height:100vh;

    display:flex;
    align-items:center;
    justify-content:center;

    padding:30px;

    position:relative;

    overflow:hidden;

}


/* stars background */

.login-page::before{

    content:"";

    position:absolute;
    inset:0;

    background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.18) 2px, transparent 3px),
    radial-gradient(circle at 80% 40%, rgba(255,255,255,.14) 2px, transparent 3px),
    radial-gradient(circle at 40% 80%, rgba(255,255,255,.10) 2px, transparent 3px);

    background-size:400px 400px;

    pointer-events:none;
}

/* ==========================================
   LOGIN WRAPPER
========================================== */

.login-wrapper{

    width:100%;
    max-width:1050px;

    display:grid;
    grid-template-columns:1fr 1fr;

    background:var(--bg-card);

    border-radius:12px;

    overflow:hidden;

    box-shadow:var(--shadow-card);

    position:relative;
    z-index:5;
}


/* =========================================
   BANNER IMAGE SLIDER
========================================= */

/* =========================================
   BANNER
========================================= */

.login-banner{

    position: relative;

    overflow: hidden;   /* IMPORTANT */

    width: 100%;

    min-height: 600px;
}


/* TRACK */

.banner-track{

    display: flex;

    width: 100%; /* 3 images */

    height: 100%;

    transition: transform .8s ease-in-out;

    -webkit-transition: transform .8s ease-in-out;
    -moz-transition: transform .8s ease-in-out;
}


/* IMAGE */

.banner-track img{

    width: 100%;

    flex-shrink: 0;

    object-fit: cover;

    -o-object-fit: cover;

    height: 600px;

    display: block;
}



/* CURRENT */

.banner-image.active{

    left: 0;

    transform: translateX(0);
}


/* PREVIOUS */

.banner-image.prev{

    left: -100%;

}


/* NEXT */

.banner-image.next{

    left: 100%;

}

/* OVERLAY */

.banner-overlay{

    position: absolute;

    inset: 0;

    background: rgba(196,88,97,.46);

    z-index: 2;

}


/* CONTENT */

.banner-content{

    position: absolute;

    bottom: 50px;
    left: 40px;
    right: 40px;

    z-index: 10;

    color: #ffffff;

}


/* QUOTE */

.banner-quote{

    font-size: 46px;

    margin-bottom: 18px;

}


/* TEXT */

.banner-text{
    font-size: 1.1rem;
    font-weight: 600;
  font-style: italic;
    line-height: 1.4;
    margin-bottom: 25px;
}


/* DOTS */

.banner-slider{

    display: flex;

    gap: 10px;

}


/* DOT */

.banner-slider span{

    width: 34px;
    height: 4px;

    background: rgba(255,255,255,.35);

    border-radius: 20px;

    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;

    cursor: pointer;

    transition: all .3s ease;

    -webkit-transition: all .3s ease;
    -moz-transition: all .3s ease;

}


/* ACTIVE DOT */

.banner-slider span.active{

    background: #ffffff;

}


/* MOBILE */

@media screen and (max-width:991px){

    .login-banner{

        width: 100%;

        min-height: 300px;

        border-radius: 14px 14px 0 0;

        -webkit-border-radius: 14px 14px 0 0;
        -moz-border-radius: 14px 14px 0 0;

    }

}
/* ==========================================
   RIGHT LOGIN FORM
========================================== */

.login-form{

    padding:40px 50px;

    display:flex;
    flex-direction:column;
    justify-content:center;
}


.login-logo{
    width: 100%;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter:var(--logo-filter);
}


.login-title{

    font-size:1.65rem;
    font-weight:700;
    color:var(--primary);
    margin-bottom:8px;
    line-height: 1.25;
}


.login-subtitle{

    color:var(--text-secondary);
font-size: 1.1rem;
    margin-bottom:25px;
}


.form-group{
    margin-bottom:25px;
}


.form-group label{

    display:block;
    margin-bottom:10px;
    font-weight:500;
    font-size: 1rem;
}


.form-control{

    width:100%;
    height:40px;
box-sizing: border-box;
    background:var(--bg-input);

    border:1px solid var(--border-color);

    border-radius:6px;

    padding:9px 14px;

    color:var(--text-primary);

    transition:var(--transition);

    -webkit-appearance:none;
    appearance:none;
}


.form-control:focus{
    border-color:var(--primary);
}


.form-control::placeholder{
    color:var(--text-placeholder);
}

/* =========================================
   PASSWORD FIELD
========================================= */

.password-group{

    max-height: 0;

    overflow: hidden;

    opacity: 0;

    margin-top: 0;

    transition:
        max-height .45s ease,
        opacity .35s ease,
        margin-top .35s ease;

    -webkit-transition:
        max-height .45s ease,
        opacity .35s ease,
        margin-top .35s ease;

    -moz-transition:
        max-height .45s ease,
        opacity .35s ease,
        margin-top .35s ease;
}


/* SHOW PASSWORD FIELD */

.password-group.show{

    max-height: 120px;

    opacity: 1;

    margin-top: 18px;
}


/* PASSWORD WRAPPER */

.password-wrapper{

    position: relative;

    display: flex;

    align-items: center;
}


/* PASSWORD INPUT */

.password-wrapper input{

    width: 100%;

    padding-right: 48px;
}


/* EYE BUTTON */

.password-toggle{

    position: absolute;

    right: 14px;

    top: 50%;

    transform: translateY(-50%);

    -webkit-transform: translateY(-50%);

    -moz-transform: translateY(-50%);

    cursor: pointer;

    border: none;

    background: none;

    color: var(--text-secondary);

    display: flex;

    align-items: center;

    justify-content: center;
}


/* ICON */

.password-toggle i{

    font-size: 15px;

    transition: color .25s ease;

    -webkit-transition: color .25s ease;
}


/* HOVER */

.password-toggle:hover i{

    color: var(--primary);
}
/* ==========================================
   BUTTON
========================================== */

.btn-login{

    width:100%;
    padding: 8px;
    background:var(--primary);
    color:#fff;
    font-weight:600;
    font-size:1rem;
    line-height: 1.5;
    border-radius:6px;
    cursor:pointer;
    transition:var(--transition);
    display: inline-block;
    text-align: center;
}


.btn-login:hover{
    background:var(--primary-hover);
}


/* ==========================================
   DIVIDER
========================================== */

.divider{

    display:flex;
    align-items:center;

    margin:15px 0;
}


.divider::before,
.divider::after{

    content:"";

    flex:1;

    height:3px;

}
.divider::before{
    background:var(--gradient-devider-1);
}
.divider::after{
    background:var(--gradient-devider-2);
}
.divider span{
    margin:0 15px;
}


/* ==========================================
   GOOGLE BUTTON
========================================== */

.btn-google{

    width:100%;
    height:46px;

    background:var(--google-btn);

    border:1px solid var(--border-color);

    border-radius:6px;

    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;

    cursor:pointer;
    color:var(--text-primary);
    transition:var(--transition);
}


.btn-google:hover{
    opacity:.9;
}


.google-icon{
    font-size:1.2rem;
}


/* ==========================================
   THEME TOGGLE
========================================== */

.theme-toggle{

    position:absolute;

    top:20px;
    right:20px;

    width:55px;
    height:30px;

    border-radius:30px;

    background:var(--bg-card);

    border:1px solid var(--border-color);

    cursor:pointer;

    display:flex;
    align-items:center;
    justify-content:center;

    z-index:100;
}
/* ==========================================
   TABLET
========================================== */

@media screen and (max-width:991px){

    .login-wrapper{

        grid-template-columns:1fr;
        max-width:650px;
    }

    .login-banner{

        min-height:340px;
    }

    .login-form{
        padding:40px;
    }

}


/* ==========================================
   MOBILE
========================================== */

@media screen and (max-width:768px){

    .login-page{
        padding:20px;
    }

    .login-banner{
        display:none;
    }

    .login-form{
        padding:35px 25px;
    }

    .login-title{
        font-size:1.6rem;
    }

}


/* ==========================================
   SMALL MOBILE
========================================== */

@media screen and (max-width:480px){

    .login-form{
        padding:25px 18px;
    }

    .login-logo{
        width:110px;
        margin-bottom:30px;
    }

    .login-title{
        font-size:1.35rem;
    }

    .form-control{
        height:44px;
    }

    .btn-login{
        height:45px;
    }

}


/* ==========================================
   SAFARI FIXES
========================================== */

@supports (-webkit-touch-callout:none){

    .login-wrapper{
        -webkit-transform:translateZ(0);
        transform:translateZ(0);
    }

}


/* ==========================================
   FIREFOX FIX
========================================== */

@-moz-document url-prefix(){

    .btn-login{
        line-height:normal;
    }

}

