@keyframes pulseGlow {
    0%, 100% {
        box-shadow:
            0 0 10px 2px rgba(255, 255, 255, 0.1),
            0 0 25px 5px rgba(255, 255, 255, 0.08),
            0 0 50px 10px rgba(255, 255, 255, 0.04);
    }
    50% {
        box-shadow:
            0 0 20px 4px rgba(255, 255, 255, 0.2),
            0 0 35px 8px rgba(255, 255, 255, 0.12),
            0 0 70px 14px rgba(255, 255, 255, 0.07);
    }
}

.login_main_content {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: none;
    color: #fff;
    text-align: center;
    z-index: 2;
}

/* ========= LOGIN BOX ========= */
#login_container {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: auto;
    padding: 20px;
    margin: 20px auto 0 auto;
    border-radius: 20px;
    background-color: rgb(23, 23, 23);
    animation: pulseGlow 8s ease-in-out infinite;
    z-index: 1;
    box-shadow:
        0 0 10px 2px rgba(255, 255, 255, 0.15),
        0 0 20px 4px rgba(255, 255, 255, 0.08),
        0 0 40px 6px rgba(255, 255, 255, 0.04);
}


.login_input{

    width: 90%;
    height: 40px;
    margin: 5% auto 0 auto;
    background-color: rgba(255, 255, 255, 0.12);
    border: none;
    color: #ffffff;
    padding: 10px;
    border-radius: 8px;
    outline: none;
}

.login_input:focus {
    outline: none;
    box-shadow: 0 0 4px 1px rgba(255, 255, 255, 0.8);
    background-color: rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
}

/* password match feedback */
.password-match {
    border: 1px solid #2ecc71; /* green */
    box-shadow: 0 0 4px 1px rgba(46, 204, 113, 0.8);
}

.password-mismatch {
    border: 1px solid #e74c3c; /* red */
    box-shadow: 0 0 4px 1px rgba(231, 76, 60, 0.8);
}


#login_btn{
    display: block;
    margin: 10% auto 0 auto;
}

#login_label{
  position: relative;
  z-index: 1;
  color: #fff;
  display: block;
  margin: 0 auto 10px auto;
  width: fit-content;
  font-size: 40px;
}


#create_acct_btn {
    display: block;                  /* Full width, so margin auto works */
    width: fit-content;              /* Shrinks to fit the text */
    margin: 20px auto 0 auto;        /* Top margin, then center horizontally */
    color: #dedede;
    text-decoration: none;
    font-size: 8px;                  /* Your requested font size */
    padding: 4px 2px;
    position: relative;
    transition: color 0.3s ease;
    text-align: center;
}

/* Underline base */
#create_acct_btn::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0%;
    background: rgba(255, 255, 255, 0.6);
    transition: width 0.4s ease;
}

/* On hover: glow + full underline */
#create_acct_btn:hover {
    color: #ffffff;
    text-shadow: 0 0 6px rgba(255,255,255,0.3);
}

#create_acct_btn:hover::after {
    width: 100%;
    box-shadow:
        0 0 12px 3px rgba(255,255,255,0.3),
        0 0 24px 6px rgba(255,255,255,0.15),
        0 0 48px 8px rgba(255,255,255,0.1);
}

body, html {
    margin: 0;
    padding: 0;
    background-color: #000;
    height: 100vh;
}

#create_acct_overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.3); /* lighter so stars show through */
    backdrop-filter: blur(3px);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

#create_acct_overlay.active {
    display: flex;
    animation: overlayFadeIn 0.25s ease-out;
}

#create_acct_overlay.closing {
    display: flex;
    animation: overlayFadeOut 0.2s ease-in forwards;
}

@keyframes overlayFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes overlayFadeOut {
    from { opacity: 1; }
    to   { opacity: 0; }
}

@keyframes createCardIn {
    0% {
        opacity: 0;
        transform: scaleY(0);
    }
    100% {
        opacity: 1;
        transform: scaleY(1);
    }
}

@keyframes createCardOut {
    0% {
        opacity: 1;
        transform: scaleY(1);
    }
    100% {
        opacity: 0;
        transform: scaleY(0);
    }
}

.create_acct_content {
    width: 100%;
    max-width: 420px;
    margin: 40px auto;
    padding: 20px 16px 30px;
    border-radius: 20px;
    background-color: rgba(10, 10, 10, 0.88); /* slightly less transparent */
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    transform-origin: center center; /* expand from midline */
}

#create_acct_overlay.active .create_acct_content {
    animation: createCardIn 0.35s ease-out;
}

#create_acct_overlay.closing .create_acct_content {
    animation: createCardOut 0.2s ease-in;
}

#create_acct_title {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
}

.overlay_section {
    margin-top: 16px;
    width: 100%;
    background-color: rgba(20, 20, 20, 0.94); /* slightly less transparent */
    border-radius: 12px;
    padding: 12px 10px 16px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
}

.overlay_section p {
    color: #aaa;
    font-size: 0.85rem;
    margin-top: 10px;
}

/* Main popup style */
.pcr-app {
    background-color: #1a1a1a !important; /* Dark gray background */
    color: #ffffff !important;           /* White text */
    border-radius: 0 0 15px 15px;
    backdrop-filter: blur(10px);
    border: none; 
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    font-family: inherit;
}

.pcr-app .pcr-interaction {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
}

/* Text + input fields */
.pcr-app input,
.pcr-app .pcr-result {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
    border: none;
    border-radius: 6px;
    padding: 6px;
}

/* Buttons (Save, Cancel) */
.pcr-app button {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.pcr-app button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Adjust slider handles */
.pcr-app .pcr-slider,
.pcr-app .pcr-color-preview {
    border-radius: 6px;
    box-shadow: none;
}

/* Keep scroll area dark too */
.pcr-app .pcr-picker {
    background-color: #2a2a2a;
}

#btn_container{
    display: flex;
    justify-content: space-evenly;
    width: 100%

}


/* MOBILE CUSTOMIZATIONS*/
@media screen and (max-width: 768px) {
    body, html {
        overflow: hidden;
    }

    #login_container {
        max-width: 72%;
        padding: 16px;
        margin: 10px auto 0 auto;
    }

    #login_label {
        font-size: 32px;
        margin-top: 10px;
    }

    /* Overlay: full screen card on mobile */
    #create_acct_overlay {
        align-items: stretch;
        padding: 0;
    }

    .create_acct_content {
        max-width: 100%;
        width: 100%;
        margin: 0;
        border-radius: 0;
        min-height: 100dvh;
        overflow-y: auto;
        padding: 24px 16px 40px;
        box-sizing: border-box;
    }

    .overlay_section {
        margin-top: 8px;
        padding: 8px 6px 10px;
    }

    .overlay_section p {
        font-size: 0.72rem;
        margin-top: 6px;
    }

    #create_acct_title {
        font-size: 1.1rem;
    }
}

/* ==== Starfield Behind Everything ==== */
#starfield {
  position: fixed;
  inset: 0;
  top: 0;
  left: 0;
  width: 100vw;          /* CSS size == viewport */
  height: 100vh;
  display: block;        /* removes inline gap quirks */
  z-index: 0;            /* or -1 if you prefer */
  pointer-events: none;
  background: #000;
  opacity: 0.5;   /* or even 0.15 */

}
.online_count_label {
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
    margin: 0.25rem 0;
    letter-spacing: 0.05em;
}

