body {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.pointer-transparent {
    pointer-events: none;
}

/*
 * ============================================================
 * Public page layout
 * ============================================================
 */

.public-page {
    position: relative;
    height: 90vh;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    pointer-events: none;
    z-index: 1;
}

.public-main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 2rem 1rem;
}

/*
 * ============================================================
 * Public content box
 * ============================================================
 */

.public-content {
    position: relative;
    width: 100%;
    max-width: 360px;
}

.public-content.content-wide {
    max-width: 720px;
}

/*
 * ============================================================
 * Left sign-in message
 * ============================================================
 */

.sign-in-msg {
    position: absolute;
    right: calc(100% + 20px);
    top: 12%;
    transform: translateY(-50%);
    width: max-content;
}

/* Completely remove the left logo on small screens */
@media (max-width: 767.98px) {
    .sign-in-msg {
        display: none;
    }
}

/*
 * ============================================================
 * Header logo (APORTAL)
 * ============================================================
 */

.public-header {
    display: block;
    max-width: 100%;
    margin-bottom: 2rem;
    padding: 1rem;
    backdrop-filter: blur(2px);
    pointer-events: auto;
}

/*
 * ============================================================
 * Form
 * ============================================================
 */

.public-form-container {
    width: 100%;
    pointer-events: auto;
    backdrop-filter: blur(2px);
}

.public-form-container .form-floating:focus-within {
    z-index: 2;
}

.public-form-container .form-control {
    width: 100%;
    height: 100%;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.40);
    border: 1px solid white;
}

.public-form-container .form-control:focus {
    background: rgba(255, 255, 255, 0.80);
    border: 1px solid white;
    box-shadow: none;
}

.public-form-container .totp-letter {
    letter-spacing: 3px;
    font-size: calc(1.275rem + 0.3vw);
    text-align: center;
}

.public-form-container .public-btn {
    display: inline-block;
    width: 100%;
    color: #fff !important;
    border-radius: 0;
    background-color: var(--bs-primary);
    border: 1px solid var(--bs-primary);
    padding: 1rem 0.75rem;
    font-weight: bold;
    letter-spacing: 5px;
    text-transform: uppercase;
}

.public-form-container .public-btn:hover {
    background-color: var(--bs-btn-hover-bg);
    border: 1px solid var(--bs-btn-hover-bg);
}

.public-form-container .public-btn:active {
    background-color: var(--bs-btn-active-bg);
    border: 1px solid var(--bs-btn-active-bg);
}

/*
 * ============================================================
 * Secondary link
 * ============================================================
 */

.sign-secondary-link {
    color: var(--bs-secondary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.95rem;
}

.sign-secondary-link:hover,
.sign-secondary-link:focus {
    color: var(--bs-primary);
    text-decoration: underline;
}

/*
 * ============================================================
 * Particles background
 * ============================================================
 */

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: radial-gradient(#d8fffc, #f1f9f9);
    z-index: 0;
}

/*
 * ============================================================
 * Footer
 * ============================================================
 */

.footer {
    flex-shrink: 0;
    position: relative;
    width: 100%;
    color: #231F20;
    font-size: 14px;
}

.footer-ac-logo {
    display: flex;
    justify-content: center;
    pointer-events: auto;
}

.footer-slogan {
    display: flex;
    justify-content: center;
    font-weight: 500;
    letter-spacing: 4.20px;
    white-space: nowrap;
}

.footer-copyright {
    display: flex;
    justify-content: center;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.42px;
    white-space: nowrap;
}

/*
 * ============================================================
 * EULA page layout
 * ============================================================
 */

.eula-content-box {
    font-size: 0.875rem;
    max-height: clamp(260px, 45vh, 520px);
    background: rgba(255, 255, 255, 0.55);
}

.eula-content-box h1,
.eula-content-box h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 1rem;
}

.eula-content-box .eula-checkboxes-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 3rem 0.5rem 0.5rem 1rem;
    font-size: 1rem;
    font-weight: 500;
}