body {
    position: relative;
    min-height: 100vh;
    background-color: #050505;
    overflow-x: hidden;
    isolation: isolate;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: linear-gradient(rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.68)), url("/static/img/LoginPage.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    filter: blur(12px) brightness(0.7) saturate(0.85);
    transform: scale(1.08);
    z-index: 0;
    pointer-events: none;
}

#main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    z-index: 1;
}

.signup-container {
    width: 100%;
    padding: 24px 16px;
}

.signup-panel {
    width: min(100%, 420px);
    background-color: var(--auth-card-bg);
    box-shadow: 0 0 15px var(--auth-card-shadow);
    border-radius: 2px;
    position: relative;
    z-index: 1;
}

.signup-logo {
    display: block;
    margin: 0 auto 8px;
    max-width: 320px;
    width: 100%;
    height: auto;
}

.signup-subtitle {
    text-align: center;
    font-size: small;
    margin-bottom: 12px;
    color: rgba(230, 238, 248, 0.9);
}

.signup-container button {
    width: 100%;
    font-weight: 600;
    font-size: larger;
    padding: 3px;
    margin-bottom: 0 !important;
    color: #fff;
}

.signup-container a {
    font-size: small;
    font-weight: 400 !important;
}

.col {
    padding: 0 !important;
}

#password {
    margin-top: 10px;
    margin-bottom: 10px;
}

#username,
#invite-key {
    min-width: 0;
}

#checkboxTerms {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 8px 0 12px;
}

#checkboxTerms p {
    margin: 0;
    text-align: left;
    font-size: small;
}

.form-check-input {
    margin-top: 0.2rem;
}

.messagealerts {
    background: var(--alert-bg);
    color: var(--alert-text);
    word-wrap: break-word;
}

.form-text {
    /* wrap the text*/
    word-wrap: break-word;
}

.signup-container a {
    text-decoration: none !important;
    color: rgb(32, 147, 255) !important;
    font-weight: 500 !important;
    transition: 0.2s;
}

.signup-container a:hover {
    text-decoration: none !important;
    color: rgb(3, 133, 255) !important;
    transition: 0.2s;
}

@media (max-width: 480px) {
    .signup-panel {
        width: 100%;
    }

    .signup-logo {
        max-width: 240px;
    }
}
