/********************************************************
 * Styling for a log in/Sign Up form
 * 
 * @author (Anyanwu Benedict Chuwkwuemeka)
 * @version 0.01
 ********************************************************/

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: var(--bcg-handle) var(--bcg-trpnt);
}

html:root
{
    --bcg-base: #275aa2;
    --bcg-bright: #ffffff;
    --bcg-btn: #0f45b8;
    --bcg-dark: #000000;
    --bcg-handle: #a0c7ff;
    --bcg-shade: #000000c3;
    --bcg-trpnt: #00000000;
    --bcg-white: #eaf3ff;
    --font-clr: #dfeafb;
    --font-shadow: #1d5ea3aa;
    --warn-clr: #ab0a0a;
    --transition-flow: 250ms;
    --transition-delay: 100ms;
    --item_max_w: 40rem;
    --item_pd_hntl: 1rem;
    --item_bdr_rad: 0.625rem;
    --inp_h: 2.5rem;
    --icon_size: 1.875rem;
}

html
{
    background-color: var(--bcg-base);
    scroll-behavior: smooth;
}

body
{
    font-family: 'Poppins', sans-serif;
    min-height: 100svh;
    min-height: 100vh;
}

@supports(-webkit-tap-highlight-color: var(--bcg-trpnt))
{
    body
    {
        -webkit-tap-highlight-color: var(--bcg-trpnt);
    }
}

a, ul,
button, input
{
    font-family: 'Poppins', sans-serif;
    background-color: var(--bcg-trpnt);
    outline: none;
    border: none;
    text-decoration: none;
    list-style: none;
}

button, label, a
{
    cursor: pointer;
}

button:active, 
label:active
{
    scale: 0.975;
}

::-moz-selection
{
    background: var(--bcg-btn);
    color: var(--bcg-bright);
}

::selection
{
    background: var(--bcg-btn);
    color: var(--bcg-bright);
}


/* --------- NAVBAR -------- */
.navbar
{
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 10;
}

.navbar .navbox 
{
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 1rem var(--item_pd_hntl);
    background-image: linear-gradient(to bottom, var(--font-shadow), #00000000);
    backdrop-filter: blur(0.125rem);
}

.navbox .logo-box
{
    width: -moz-fit-content;
    width: fit-content;
    display: flex;
    flex-direction: row;
    align-items: center;
    cursor: pointer;
}

.logo-box .logo-icon
{
    width: var(--icon_size);
    height: var(--icon_size);
    fill: var(--font-clr);
    margin-right: 0.5rem;
}

.logo-box .logo-txt
{
    color: var(--font-clr);
    font-size: 1.875rem;
    font-weight: 700;
    text-transform: uppercase;
}

.navbox .nav-list
{
    width: -moz-fit-content;
    width: fit-content;
}

.navbox .nav-ul
{
    display: flex;
    flex-direction: row;
}

.nav-ul .nav-items
{
    width: -moz-fit-content;
    width: fit-content;
    height: -moz-fit-content;
    height: fit-content;
}

.nav-items:not(:last-child)
{
    margin-right: 1.875rem;
}

.nav-items .nav-links
{
    width: 100%;
    position: relative;
    color: var(--font-clr);
    font-size: 1.125rem;
    font-weight: 500;
}

.nav-links::after
{
    content: '';
    position: absolute;
    left: 50%;
    bottom: -0.125rem;
    width: 0%;
    height: 0.125rem;
    border-radius: var(--item_bdr_rad);
    background-color: var(--font-clr);
    -moz-user-select: -moz-none;
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none;
    pointer-events: none;
    transition: all var(--transition-flow) ease-in-out;
}

.nav-links:hover::after
{
    left: 0;
    width: 100%;
}

.navbox .nav-menu-btn
{
    display: none;
    padding: 0.5rem;
}

.nav-menu-btn .nav-menu-icon
{
    width: var(--icon_size);
    height: var(--icon_size);
}

.nav-menu-icon.l8
{
    display: none;
}

.navbox:has( .nav-menu-chbx:checked) .nav-menu-icon.b4
{
    display: none;
}

.navbox:has( .nav-menu-chbx:checked) .nav-menu-icon.l8
{
    display: block;
}

.nav-menu-icon .nav-menu-svg
{
    width: 100%;
    height: 100%;
    fill: var(--font-clr);
}

.nav-menu-chbx
{
    position: fixed;
    top: -1000%;
    left: -1000%;
    -moz-user-select: -moz-none;
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none;
    pointer-events: none;
}


/* --------- BODY -------- */
.wrapper
{
    width: 100%;
    padding: 6.25rem 0;
}

.wrapper:has(.base .form_cls) 
{
    padding: 2.5rem 0;
}

.hello
{
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: center;
    display: none;
}

.wrapper:has(.base:empty) .hello
{
    display: flex;
}

.hello .greeting
{
    color: var(--font-clr);
    font-size: 2.5rem;
    text-align: center;
}

.hello .desc
{
    color: var(--font-clr);
    font-size: 1.25rem;
    text-align: center;
}

.hello .get-started  
{
    min-width: 12.5rem;
    margin-top: 1.25rem;
    padding: 1rem 2.5rem;
    outline: none;
    border: none;
    color: var(--font-clr);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--item_bdr_rad);
    box-shadow: 0 0 1.25rem 0.125rem var(--bcg-btn);
    background-color: var(--bcg-btn);
    transition: all 300ms ease-in-out;
}



/* ---------- FORMS ---------- */

.base
{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 var(--item_pd_hntl);
}

.base .hdr
{
    color: var(--font-clr);
    margin-bottom: 1rem;
    font-size: 1.875rem;
}

.form_cls
{
    width: 100%;
    max-width: var(--item_max_w);
    margin: 0 auto;
    padding: 1rem;
    border-radius: var(--item_bdr_rad);
    box-shadow: inset 0 0 0.5rem 0.125rem var(--font-shadow);
    background-color: var(--bcg-white);
}

.form_cls .bdr
{
    width: 100%;
    display: flex;
    flex-direction: column;
}

.bdr .sect
{
    width: 100%;
    display: flex;
    flex-direction: column;
    color: var(--bcg-base);
}

.sect:not(:first-child)
{
    margin-top: 0.625rem;
}

.sect .ttl
{
    width: 100%;
    font-size: 1rem;
}

.sect .box
{
    position: relative;
    width: 100%;
    height: var(--inp_h);
    margin: 0.25rem 0;
    border-radius: var(--item_bdr_rad);
    box-shadow: inset 0 0 0.25rem 0.0625rem var(--font-shadow);
    background-color: var(--bcg-trpnt);
    overflow: hidden;
    transition: all var(--transition-flow) ease-in-out;
    z-index: 1;
}

.box::before
{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--item_bdr_rad);
    box-shadow: inset 0 0 0.25rem 0.0625rem var(--font-shadow);
    background-color: var(--bcg-trpnt);
    opacity: 0;
    overflow: hidden;
    transition: all var(--transition-flow) ease-in-out;
    pointer-events: none;
}

.sect:has( .inp_cls:autofill) .box::before
{
    opacity: 1;
}

.sect:has( .warn.active) .box
{
    box-shadow: inset 0 0 0.25rem 0.0625rem var(--warn-clr);
}

.box .inp_cls
{
    width: 100%;
    height: 100%;
    padding: 0.125rem 0.5rem;
    color: var(--bcg-dark);
    transition: all var(--transition-flow) ease-in-out;
}

.inp_cls::placeholder
{
    opacity: 0.65;
}

.sect:has( .warn.active) .inp_cls,
.sect:has( .warn.active) .inp_cls::placeholder
{
    color: var(--warn-clr);
}

.inp_cls[type="password"]
{
    padding-right: calc((var(--icon_size) + 0.5rem));
}

.box:has(.pwd_inp_fld) .pw_tgl
{
    position: absolute;
    top: 50%;
    right: calc((0.5rem * 0.70));
    width: var(--icon_size);
    height: var(--icon_size);
    display: none;
    place-items: center;
    background-color: var(--bcg-trpnt);
    opacity: 0.75;
    transform: translateY(-50%);
    cursor: pointer;
}

.box:has(.pwd_inp_fld) .pw_tgl.active
{
    display: grid;
}

.pw_tgl .pw_icon
{
    width: 70%;
    height: 70%;
}

.pw_off
{
    display: none;
}

.pw_tgl[visibility="on"] .pw_on
{
    display: none;
}

.pw_tgl[visibility="on"] .pw_off
{
    display: block;
}

.pw_icon .pw_svg
{
    width: 100%;
    height: 100%;
    fill: var(--bcg-btn);
}

.sect .warn
{
    width: 100%;
    display: none;
    color: var(--warn-clr);
    font-size: 0.75rem;
    transition: all var(--transition-flow) ease-in-out;
}

.warn.active
{
    display: block;
}

.form_btn
{
    width: 100%;
    padding: 0.3125rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--item_bdr_rad);
    box-shadow: 0 0 0.25rem 0.125rem var(--font-shadow);
    transition: all var(--transition-flow) ease-in-out;
    cursor: pointer;
}

.form_btn.sbmt_btn
{
    margin-top: 1rem;
    color: var(--bcg-white);
    background-color: var(--bcg-btn);
}

.form_btn.reset_btn
{
    margin-top: 0.75rem;
    color: var(--bcg-base);
    border: 0.125rem solid var(--bcg-base);
}







@media only screen and (max-width: 48rem)
{
    .navbox .nav-list
    {
        position: absolute;
        top: 100%;
        right: var(--item_pd_hntl);
        width: 0rem;
        transition: all var(--transition-flow) ease-in-out;
        opacity: 0;
        visibility: hidden;
        overflow: hidden;
    }

    .navbox:has( .nav-menu-chbx:checked) .nav-list
    {
        width: 12.5rem;
        opacity: 1;
        visibility: visible;
    }

    .nav-list .nav-ul
    {
        flex-direction: column;
        padding: var(--item_pd_hntl);
        border-radius: var(--item_bdr_rad);
        background-color: var(--bcg-white);
        box-shadow: 0 0 0.25rem 0.125rem var(--font-shadow) inset;
    }

    .nav-list .nav-items
    {
        width: 100%;
    }

    .nav-items:not(:last-child)
    {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .nav-items .nav-links
    {
        color: var(--bcg-base);
    }

    .nav-links::after
    {
        background-color: var(--bcg-base);
    }

    .navbox .nav-menu-btn
    {
        display: block;
    }
}



@media only screen and (max-width: 30.3125rem)
{
    .navbox:has( .nav-menu-chbx:checked) .nav-list
    {
        width: calc((100% - (var(--item_pd_hntl) * 2)));
    }

    .hello .greeting
    {
        font-size: 1.875rem;
    }

    .hello .desc
    {
        font-size: 1rem;
    }
}



