* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    /* Basic colors  */
    --transition-smooth: all 0.5s ease-in-out;
    --cl-background: #ffffff;
    --cl-bgopacity1: hsl(0, 0%, 110%);
    --cl-bgopacity: rgba(255, 255, 255, 0.192);
    --cl-primary: #ffffff;
    --cl-prim-dark: #f1ecec;
    --cl-secondary: #007BFF;
    --cl-sec-light: #e0f0ff;
    --cl-sec-dark: #0056b3;
    --cl-card-h3: #999983;
    --cl-orange: #ff8000;
    --cl-green: #008000;
    --cl-red: #ff0000;
    --cl-text: #2c3e50;
    --cl-shadow: rgba(0, 0, 0, 0.2);
    --cl-shadow1: rgba(0, 0, 0, 0.5);

    /* Border radius */
    --radius-circle: 50%;
    --card-radius: 2rem;
    --radius-1: 0.4rem;
    --radius-2: 0.8rem;
    --radius-3: 1.2rem;

    /* Icon size */
    --icon-sm: 0.5rem;
    --icon-md: 1.5rem;
    --icon-lg: 2rem;

    /* Others */
    --box-shadow: 0.05rem 0.1rem 1.5rem var(--cl-shadow);
    --box-shadow-reverse: -0.05rem -0.1rem var(--cl-bgopacity);
    --box-shadow1: -0.1rem 0.1rem 1.5rem var(--cl-shadow);
    --box-shadow2: 0.05rem 0.1rem 1.5rem var(--cl-shadow1);
    --card-padding: 1.5rem;
    --bgopacity: 0.5;
}

body.dark-mode {
    --cl-background: #272424;
    --cl-bgopacity: hsl(0, 0%, 21%);
    --cl-primary: #ffffff;
    --cl-prim-dark: #3f3e3e;
    --cl-secondary: #007BFF;
    --cl-sec-light: #e0f0ff;
    --cl-sec-dark: #0056b3;
    --cl-card-h3: #999983;
    --cl-orange: #ff8000;
    --cl-green: #008000;
    --cl-red: #ff0000;
    --cl-text: #ffffff;
    --cl-shadow: rgba(0, 0, 0, 0.8);
}

html {
    font-size: 13px;

}

body {
    width: 100vw;
    height: 100dvh;
    background: url('https://images.unsplash.com/photo-1519125323398-675f0ddb6308') no-repeat center center/cover fixed;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: var(--cl-secondary);
}

img {
    width: 100vw;
    display: block;
}

i {
    font-size: 1.32rem;
}

h1 {
    font-size: 1.8rem;
    font-weight: 800;
}

h2 {
    font-size: 1.4rem;
    color: #3f3e3e;
}

h3 {
    font-size: 1.0rem;
}

header {
    width: 90vw;
    height: 10vh;
    position: relative;
    border-radius: var(--radius-2);
    display: flex;
    justify-content: space-between;
    font-weight: 600s;
    padding: 0.67rem;
    margin: 1.3rem auto;
    align-items: center;
    backdrop-filter: blur(8px);
    box-shadow: var(--box-shadow);
    animation: slide ease-in 3s;
    >div h1{
        color: var(--cl-background);
    } span{
        color: var(--cl-sec-dark);

    }
}
header img{
    position: absolute;
    width: auto;
    height: 100%;
    top: 0;
    left: 0;
}
.vghead{
    width: 60vw;
    margin-left: 100px;
}

.togglemenu {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cl-prim-dark);
    gap: 0.28rem;
    padding: 0.28rem 0.28rem;
    border-radius: var(--radius-1);
    cursor: pointer;
}

.active-mode {
    background: var(--cl-secondary);
    color: var(--cl-primary);
    border-radius: var(--radius-1);
    padding: 0.28rem 0.28rem;
}

main{
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
    justify-content: center;
    color: var(--cl-primary);
    margin: 3rem auto;
    padding: 2rem;
    font-size: 120%;
    backdrop-filter: blur(10px);
    box-shadow: inset var(--box-shadow);
    border-radius: var(--radius-2);
    animation: slideOut ease-in-out 2s;
}

.intromsg{
    font-size: 140%;
}

.togglelog{
    display: flex;
    justify-content: space-evenly;
    >h2{
        display: block;
        background: var(--cl-bgopacity1);
        padding: 5px;
        border-radius: var(--radius-1);
        cursor: pointer;
    }
}
.forms.active{
    display: none;
}
.login{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 1;
    animation: fadeIn 4s;
}
label{
        margin-bottom: 0;
        font-weight: bold;
}
input{
        width: 65%;
        padding: 5px;
        border-radius: var(--radius-2);
        margin-bottom: 1rem;
        background: none;
        color: var(--cl-primary);
        font-size: 1.3rem;
}
button{
    padding: 10px;
    width: 50%;
    border-radius: var(--radius-3);
    font-weight: bold;
    cursor: pointer;
    font-size: 1.4rem;
    background-color: var(--cl-secondary);
    color: var(--cl-primary);
}
.signup{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    animation: fadeIn 4s;
}
@keyframes slide{
    0%{
        transform: translateX(-100%);
        opacity: 0;
    }
    100%{
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut{
    0%{
        transform: translateX(100%);
        opacity: 0;
        scale: 0.7;
    }
    100%{
        transform: translateX(0);
        opacity: 1;
        scale: 1;
    }
}
@keyframes fadeIn{
    0%{
        opacity: 0;
        scale: 0.2;
    }
    30%{
        opacity: 0;
    }
    60%{
        opacity: 0.8;
        scale: 1.3;
    }
}

@media (max-width: 769px){
    header{
        width: 98vw;
        justify-content: right;
    }
    main{
        width: 80%;
        margin: 1.3rem auto;
    }
    input{
        width: 90%;
    }
}