@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;700&display=swap');

:root, body{
    font-size: 10px;
    
    --red-500: #ff3a3a;
    --red-700: #cd4444;
    --red-800: #a03939;

    --green-500: #00be4c;
    --green-700: #14a84f;
    --green-800: #22884b;

    --body-background-color: #0b1719;
    --body-color: #f7f6fa;
    --login-cont-bg: rgba(194, 194, 194, 0.10);
    --h2-color:  #ffffff;
    --label-no-value-color: #999;
    --border-input: #ffffff;
    --color-input: #fff;
    --input-focus-border-color: #44d8d6;
    --button-color: #fff;
    --autofill-bs: #377173;
    --autofill-color: #fff;
}

.light{
    --body-background-color: #0b1719;
    --body-color: #494949;
    --login-cont-bg: rgb(193 193 193 / 10%);
    --h2-color:  #454545;
    --label-no-value-color: #999;
    --border-input: #a5a5a5;
    --color-input: #121212;
    --input-focus-border-color: #44d8d6;
    --button-color: #fff;
    --autofill-bs: #7cd8db;
    --autofill-color: #fff;
}

html {
    height: 100%;
}

body {
    min-height: 100%;
    display: flex;
    margin: 0;
    justify-content: center;
    background-color: var(--body-background-color);
    color: var(--body-color);
    font-family: 'Open Sans', sans-serif;
}

.background{
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--page-background);
}

.wrapper{
    min-height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.login-cont{
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--login-cont-bg);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    max-width: 400px;
    width: 90%;
    padding: 30px;
    box-sizing: border-box;
    margin-block: 2rem;
}

h1{
    margin: 0;
    margin-bottom: 0px;
    font-weight: normal;
    font-size: 21px;
}

h2{
    margin: 0;
    margin-bottom: 15px;
    font-weight: normal;
    color: var(--h2-color);
    font-size: 16px;
}

label{
    width: 100%;
    margin-bottom: 10px;
    font-size: 1.6rem;
    position: relative;
}

label::after{
    content: attr(label-str);
    position: absolute;
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
    left: 12px;
    top: 0;
    bottom: 0;
    box-sizing: border-box;
    font-size: 1em;
    padding-top: 10px;
    padding-bottom: 10px;
    pointer-events: none;
    transition: top .2s, left .2s, bottom .2s, padding-top .2s, padding-bottom .2s, font-size .2s;
}

label.has-value::after{
    font-size: 1rem;
    padding-top: 2px;
    padding-bottom: 28px;
}

label:not(.has-value):focus-within::after{
    color: var(--label-no-value-color)
}

input{
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    background-color: transparent;
    border: solid 2px var(--border-input);
    outline: none;
    color: var(--color-input);
    border-radius: 4px;
    font-size: inherit;
}

input:focus-within{
    border: solid 2px var(--input-focus-border-color);
}

button{
    font-size: 1.6em;
    padding-block: var(--button-padding-block);
    padding-inline: var(--button-padding-inline);
    background: var(--background);
    color: var(--button-color);
    border: none;
    cursor: pointer;
    border-radius: 10px;
    outline: none;
    --icon-fill: var(--color);
    --color:  var(--button-text-color);
    --background:  var(--button-background);
    font-weight: bold;
}

button:hover{
    --background: var(--button-hover-background);
    --color: var(--button-hover-text-color);
}

button:focus-visible{
    --background: var(--button-focus-background);
    --color: var(--button-focus-text-color);
    outline: 2px solid var(--button-focus-background);
    outline-offset: 2px;
}

button:active{
    --background: var(--button-active-background);
    --color: var(--button-active-text-color);
}

button[disabled]{
    --background: var(--button-disabled-background);
    --color: var(--button-disabled-text-color);
}

.success{
    --button-padding-block: .8rem;
    --button-padding-inline: 1.5rem;
    --button-border-radius: 1rem;
    
    --button-hover-background: var(--button-background);
    --button-hover-text-color: var(--button-text-color);
    --button-focus-background: var(--button-hover-background);
    --button-focus-text-color: var(--button-hover-text-color);
    --button-active-background: var(--button-hover-background);
    --button-active-text-color: var(--button-hover-text-color);

    --button-background: var(--green-500);
    --button-disabled-background: var(--primary-100);
    --button-disabled-text-color: var(--primary-150);

    --button-hover-background: var(--green-700);
    --button-active-background: var(--green-800);
}
    
.danger{
    --button-padding-block: .8rem;
    --button-padding-inline: 1.5rem;
    --button-border-radius: 1rem;
    
    --button-hover-background: var(--button-background);
    --button-hover-text-color: var(--button-text-color);
    --button-focus-background: var(--button-hover-background);
    --button-focus-text-color: var(--button-hover-text-color);
    --button-active-background: var(--button-hover-background);
    --button-active-text-color: var(--button-hover-text-color);

    --button-background: var(--red-500);
    --button-disabled-background: var(--primary-100);
    --button-disabled-text-color: var(--primary-150);

    --button-hover-background: var(--red-700);
    --button-active-background: var(--red-800);
}


/* ---- particles.js container ---- */

#particles-js{
    width: 100%;
    height: 100%;
    background-color: #0000;
    background-image: url('');
    background-size: cover;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    position: absolute;
    overflow: hidden;
}

.logo{
    height: 120px;
    border-radius: 10px;
    margin-bottom: 5px;
}

.logo img{
    height: inherit;
}

.logo-w{
    position: relative;
    z-index: 10;
    max-width: 400px;
    width: 90%;
    border-radius: 10px;
}

.logo-w img{
    width: 100%;
    max-height: 20vh;
    object-fit: contain;
}

.hidden{
    visibility: hidden;
}

:-webkit-autofill,
:-webkit-autofill:hover, 
:-webkit-autofill:focus, 
:-webkit-autofill:active{
    box-shadow: var(--autofill-bs) 0px 0px 0px 50px inset;
    background-color: transparent !important;
    color: var(--autofill-color)!important;
    appearance: none;
}