
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

body {
    background-color: #d5d5e1;
    color: #717171;
    font-family: Inter;
    margin: 0;
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}
body::after,
body::before {
    position: absolute;
    width: 200px;
    height: 200px;
    content: '';
    background-color: #312e81;
    top: 0;
    right: 0;
    border-radius: 10px 30px 600px 100px;
    filter: blur(100px);
    pointer-events: none;
}
body::after {
    top: unset;
    right: unset;
    bottom: 0;
    left: 0;
    border-radius: 100px 30px 600px 100px;
}
* {
    padding: 0;
    margin: 0;
    list-style: none;
}
.logo img {
    width: 50px;
    opacity: 1;
}
.logo {
    width: 60px;
    height: 60px;
    margin: auto;
    background-color: #312e81e4;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    box-shadow: 0 10px 30px #0004;
    margin-bottom: 30px;
}
h1 {
    font-weight: 500;
    color: #312e81;
    font-size: x-large;
    margin-bottom: 10px;
}
.text-white {
    color: #312e81;
}
form {
    display: flex;
    margin: auto;
    margin-block: 30px;
    width: min(300px, 90vw);
    gap: 15px;
    flex-wrap: wrap;
}
form input,
form button {
    all: unset;
    padding: 10px;
    border-radius: 15px;
    background-color: #eeeef3;
    box-shadow: 0 10px 30px #0005;
    border: 1px solid #71717188;
    transition: background-image 0.5s, opacity .5s, border .5s;

}
form * {
    width: 100%!important;
}
form input {
    color: #43408b;
}
form button {
    cursor: pointer;
}
form button[type="submit"] {
    background-color: #fff;
    color: #1C1C1E;
}
.content-card { /* Styling for terms/privacy content */
    display: flex;
    margin: auto;
    margin-block: 30px;
    width: min(300px, 90vw);
    gap: 15px;
    flex-wrap: wrap;
    all: unset; /* Reset some default div styles */
    padding: 10px;
    border-radius: 15px;
    background-color: #eeeef3;
    box-shadow: 0 10px 30px #0005;
    border: 1px solid #71717188;
    transition: background-image 0.5s, opacity .5s, border .5s;
    color: #000; /* Changed to black */
    text-align: left; /* Align text to left within the card */
    flex-direction: column; /* Stack content vertically */
}
.content-card h1, .content-card h2, .content-card p {
    width: 100%; /* Ensure content takes full width of the card */
}
.content-card p { /* Added for paragraph spacing */
    margin-bottom: 1em; /* Add space below paragraphs */
}
.or {
    position: relative;
}
.or::before {
    position: absolute;
    width: 100%;
    height: 1px;
    content: '';
    left: 0;
    top: 45%;
    background-image: linear-gradient(
        to right,
        #71717155 0 40%, transparent 40% 60%, #71717155 60%
    );
}
p a {
    border-bottom: 1px solid #717171;
}
input + p {
    font-size: small;
    text-align: left;
}
.sso {
    margin-bottom: 30px;
}
.sso + p {
    font-size: small;
}
input:invalid:not(:placeholder-shown) {
    border-color: red;
    background-image: url(../images/checked_red.png);
}
input:valid:not(:placeholder-shown) {
    background-image: url(../images/checked_green.png);
}
input:invalid:not(:placeholder-shown),
input:valid:not(:placeholder-shown) {
    background-size: 20px;
    background-repeat: no-repeat;
    background-position: calc(100% - 10px);
}
input:invalid:not(:placeholder-shown) + p {
    color: #a20e0e;
}
input:invalid ~ button[type="submit"] {
    opacity: .6;
    pointer-events: none;
}

@media (prefers-color-scheme: dark) {
    body {
        background-color: #d5d5e1;
        color: #717171;
    }
    form input,
    form button {
        background-color: #eeeef3;
        border-color: #9995;
    }
    form button[type="submit"] {
        background-color: #fff;
        color: #1C1C1E;
    }
    h1 {
        color: #43408b;
    }
    .text-white {
        color: #43408b;
    }
    p a {
        border-color: #999;
    }
    .logo {
        background-color: #312e81e4;
    }
    body::after,
    body::before {
        background-color: #312e81;
    }
}
