/* Custom Checkbox */

.account-check {
    position: relative;
    display: flex;
    align-items: flex-start;
    min-height: 40px;
    padding-left: 0;
}

.account-check .form-check-input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}

.account-check .form-check-label {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    margin-bottom: 0;
    line-height: 1.35;
    cursor: pointer;
    user-select: none;
}

.account-check .form-check-label::before {
    content: "";
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border: 2px solid rgb(48.8949152542, 57.0440677966, 71.3050847458);
    border-radius: 4px;
    background: rgba(0, 0, 0, .4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.account-check .form-check-label::after {
    content: "";
    position: absolute;
    top: 10px;
    left: 10px;
    width: 8px;
    height: 14px;
    border: solid #fff;
    border-width: 0 3px 3px 0;
    opacity: 0;
    transform: rotate(45deg) scale(.7);
    transition: opacity .15s ease, transform .15s ease;
}

.account-check .form-check-input:checked + .form-check-label::before {
    border-color: #1a8bd1;
    background: rgba(0, 0, 0, .3);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.account-check .form-check-input:checked + .form-check-label::after {
    opacity: 1;
    transform: rotate(45deg) scale(1);
}

.account-check .form-check-input:focus-visible + .form-check-label::before {
    outline: 2px solid rgba(255, 255, 255, .8);
    outline-offset: 3px;
}

.account-check .form-check-input:disabled + .form-check-label {
    cursor: not-allowed;
    opacity: .65;
}

.account-check-center {
    justify-content: center;
}

/* Password visibility toggle — uses input-group-text to match the field and prepend icon */

.account-password-input-group > .input-group-append {
    flex: 0 0 2.875rem;
    width: 2.875rem;
    min-width: 2.875rem;
    max-width: 2.875rem;
    overflow: hidden;
}

.account-password-input-group .account-password-toggle {
    cursor: pointer;
    margin: 0;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    flex: 1 1 auto;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: color .15s ease, background-color .15s ease;
}

.account-password-input-group .account-password-toggle-icon-slot {
    display: inline-flex;
    flex: 0 0 1.25rem;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1rem;
    overflow: hidden;
}

.account-password-input-group .account-password-toggle svg.svg-inline--fa,
.account-password-input-group .account-password-toggle .account-password-toggle-icon {
    width: 1.25rem !important;
    height: 1rem !important;
    max-width: 1.25rem !important;
    min-width: 1.25rem !important;
    max-height: 1rem !important;
    min-height: 1rem !important;
    font-size: 1rem;
    display: block;
    box-sizing: border-box !important;
    overflow: hidden !important;
    vertical-align: 0 !important;
}

.account-password-input-group .account-password-toggle:hover {
    color: #fff;
}

.account-password-input-group .account-password-toggle:focus-visible {
    outline: 2px solid rgba(255, 255, 255, .8);
    outline-offset: -2px;
    box-shadow: none;
    z-index: 3;
}

/* Page background */

.account-form-page {
    position: relative;
    overflow: hidden;
}

/* Base styles applied to ALL orbs. */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
}

/* Orb 1: Top Left - Cool Cyan */
.orb-1 {
    width: 25vw;
    height: 25vw;
    top: 5%;
    left: 5%;
    background: rgba(0, 212, 255, 0.35); /* Cyan */
    animation: wanderOne 8s ease-in-out infinite;
}

/* Orb 2: Bottom Right - Warm Coral/Orange */
.orb-2 {
    width: 30vw;
    height: 30vw;
    bottom: 5%;
    right: -5%;
    background: rgba(255, 126, 103, 0.30); /* Coral */
    animation: wanderTwo 11s ease-in-out infinite;
}

/* Orb 3: Top Right - Deep Indigo */
.orb-3 {
    width: 20vw;
    height: 20vw;
    top: -10%;
    right: 15%;
    background: rgba(114, 9, 183, 0.40); /* Indigo */
    animation: wanderThree 13s ease-in-out infinite;
}

/* Orb 4: Bottom Left - Vibrant Magenta */
.orb-4 {
    width: 22vw;
    height: 22vw;
    bottom: 10%;
    left: -5%;
    background: rgba(247, 37, 133, 0.30); /* Magenta */
    animation: wanderFour 9s ease-in-out infinite;
}

/* --- The Animations --- */
/* By giving each orb different durations they will rarely sync up. */

@keyframes wanderOne {
    0%   { transform: translate(0%, 0%) scale(1); }
    33%  { transform: translate(30%, 20%) scale(1.2); }
    66%  { transform: translate(-10%, 40%) scale(0.8); }
    100% { transform: translate(0%, 0%) scale(1); }
}

@keyframes wanderTwo {
    0%   { transform: translate(0%, 0%) scale(1); }
    33%  { transform: translate(-40%, -20%) scale(0.9); }
    66%  { transform: translate(20%, -30%) scale(1.3); }
    100% { transform: translate(0%, 0%) scale(1); }
}

@keyframes wanderThree {
    0%   { transform: translate(0%, 0%) scale(1); }
    33%  { transform: translate(-30%, 30%) scale(1.4); }
    66%  { transform: translate(-50%, -10%) scale(0.9); }
    100% { transform: translate(0%, 0%) scale(1); }
}

@keyframes wanderFour {
    0%   { transform: translate(0%, 0%) scale(1); }
    33%  { transform: translate(40%, -40%) scale(0.8); }
    66%  { transform: translate(20%, 20%) scale(1.2); }
    100% { transform: translate(0%, 0%) scale(1); }
}