@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&display=swap');

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Quicksand', sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    width: 100%;
    background: #222431;
    padding: 40px 20px;
}

/* Snow */

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Left Side */

.left-side {
    height: 100%;
    width: 100%;
    background-image: url(images/login-side-img2.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    pointer-events: none;
    border-radius: 20px 0 0 20px;
    border-right: 2px dotted #222431;
    padding: 10px;
}

/*.left-side1 {} */

/* Right Side */

.right-side {
    padding: 40px;
}

/* Button Group */

.btn-group {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
    margin-bottom: 32px;
}

.btn-group .btn {
    display: flex;
    align-items: center;
    column-gap: 4px;
    width: max-content;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 8px 6px;
    border: 2px solid #6b7280;
    border-radius: 5px;
    background-color: #f6f6f6;
    transform: scale(1);
    cursor: pointer;
    transition: transform 0.1s ease, background-color 0.5s, color 0.5s;
}

.btn-group .btn:focus {
    transform: scale(0.97);
}

.btn-group .btn:hover {
    background-color: #000;
    color: #eee;
}

.btn img {
    width: 16px;
    height: 16px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f6f6f6;
    border-radius: 50%;
    padding: 2px;
}

/* OR */

.or {
    position: relative;
    text-align: center;
    margin-bottom: 24px;
    font-size: 1rem;
    font-weight: 600;
}

.or::before,
.or::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #000;
}

.or::before {
    left: 0;
}

.or::after {
    right: 0;
}

/* Inputs and Labels */

input {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #ccc;
    outline: 0;
    border-radius: 5px;
    background-color: transparent;
    margin: 4px 0 18px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.5s;
}

input:focus {
    border: 2px solid #000;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-background-clip: text;
    -webkit-text-fill-color: #000;
    transition: background-color 5000s ease-in-out 0s;
}

label {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Login Button */

.login-btn {
    width: 100%;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 24px;
    margin: 12px 0 24px;
    border: 2px solid #6b7280;
    border-radius: 5px;
    background-color: #222431;
    cursor: pointer;
    transition: all 0.5s;
    color: #fff;
}

.login-btn:hover {
    background-color: #1d467e;
    color: #eee;
}

/* Links */

.links {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

a:link,
a:visited,
a:hover,
a:active {
    text-decoration: none;
}

a {
    color: #000;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: -1px;
    transition: all 0.4s ease;
}

a:hover {
    color: rgb(13, 133, 185);
}

@media (min-width: 1200px) {

    .h1,
    h1 {
        font-size: 2.3rem;
        font-weight: 600;
    }
}

@media only screen and (max-width: 600px) {
    main {
        grid-template-columns: 45% 55%;
        place-items: center;
        background: #F6F9F6;
        width: min(900px, 95%);
        border-radius: 20px;
    }

    .left-side {
        display: none;
    }

    .right-side {
        padding: 20px !important;
    }

    .demo_svg_01 {
        width: 100% !important;
        height: 242px;
        padding: 20px;
        border-radius: 20px 20px 205px 205px;
        background: #222431de;
    }
}

@media only screen and (min-width: 600px) {
    main {
        display: grid;
        grid-template-columns: 45% 55%;
        place-items: center;
        background: #F6F9F6;
        width: min(900px, 95%);
        border-radius: 20px;
    }

    .demo_svg_01 {
        width: 100% !important;
        height: 432px;
        background: #222431de;
        border-radius: 20px;
    }
}

.loader {
    border: 4px solid #ecf0f1;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
    position: relative;
    top: 70%;
    left: 47%;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

input[type="password"] {
    padding: 10px;
    /* Adjust padding as needed */
    border: 2px solid lightgrey;
    /* Match the border style */
    border-radius: 4px;
    /* Match the border radius */
    flex: 1;
    /* Ensure the input takes available space */
}
