/* =========================================================
   GLOBAL STYLING
   ========================================================= */
html, body {
    height: 100%;
    margin: 0;
}

body {
    /* Darker, richer base */
    background-color: #3a0000;

    /* Velvet + deep folds (higher contrast) */
    background-image:
        /* Left velvet glow */
        radial-gradient(
            circle at 20% 50%,
            rgba(255, 40, 40, 0.38) 0%,
            rgba(180, 0, 0, 0.22) 35%,
            transparent 65%
        ),

        /* Right velvet glow */
        radial-gradient(
            circle at 80% 50%,
            rgba(255, 40, 40, 0.38) 0%,
            rgba(180, 0, 0, 0.22) 35%,
            transparent 65%
        ),

        /* Pronounced velvet folds */
        repeating-linear-gradient(
            90deg,
            #6f0000 0,
            #6f0000 14px,
            #9a0000 14px,
            #9a0000 28px,
            #2a0000 28px,
            #2a0000 44px
        ),

        /* Strong vertical shading */
        linear-gradient(
            to bottom,
            rgba(0,0,0,0.25),
            rgba(0,0,0,0.92)
        );

    background-blend-mode: multiply, screen, multiply, multiply;
    background-size: 100% 100%, 100% 100%, 70px 100%, 100% 100%;
    background-repeat: no-repeat, no-repeat, repeat, no-repeat;

    /* Deeper inset vignette */
    box-shadow: inset 0 0 200px rgba(0,0,0,0.9);

    color: #ffffff;
    font-family: "Cinzel", "Times New Roman", Times, serif;
    text-align: center;
}


/* =========================================================
   INLINE CHECKBOX ITEMS
   ========================================================= */
.inline-items {
    display: flex;
    align-items: center;
    font-family: "Cinzel", "Bitstream Vera Sans", Tahoma, serif;
}

.inline-items input[type="checkbox"] {
    flex: 0 0 10%;
    accent-color: #ffd700;
    border: 2px solid #ffd700;
    border-radius: 4px;
    background-color: #140000;
}

.inline-items label {
    flex: 1;
    padding-left: 5px;
    color: #ffd700;
}

/* =========================================================
   LOGIN & REGISTER LAYOUT
   ========================================================= */
#register,
#login {
    font-family: "Cinzel", serif;
    font-size: 0.9em;
    background-color: #333;
    padding-bottom: 80px; /* Prevent footer overlap */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* Form container */
#register .container,
#login .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    margin: 20px;
}

/* Hide default labels (accessible version) */
#register label,
#login label {
    position: absolute;
    left: -9999px;
}

/* =========================================================
   LOGIN / REGISTER CARD
   ========================================================= */
.login-card, .register-card {
    backdrop-filter: blur(15px);
    background: rgba(20, 0, 0, 0.85);
    border-radius: 1rem;
    border: 2px solid #ffd700;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7);

    padding: 3rem 2rem;
    width: 100%;
    max-width: 800px;

    color: #ffd700;
    font-family: "Cinzel", serif;

    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

/* Card title */
.login-card h3,  .register-card h3 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.7);
}

/* =========================================================
   FORM INPUTS
   ========================================================= */
#register input,
#login input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;

    border: 2px solid #ffd700;
    border-radius: 6px;

    background-color: #140000;
    color: #ffd700;

    box-sizing: border-box;
    font-family: "Cinzel", serif;

    transition: all 0.3s ease;
}

#register input:focus,
#login input:focus {
    outline: none;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
    border-color: #fffbe6;
    background-color: #1a0000;
    color: #fffbe6;
}

/* Placeholder */
#register input::placeholder,
#login input::placeholder {
    color: #aa8c2b;
}

/* Disabled inputs */
#register input:disabled,
#login input:disabled {
    background-color: #2c2c2c;
    border-color: #555;
    color: #666;
}

/* Error message */
#error-message {
    margin: 20px auto;
    text-align: center;
    color: #ff4444;
    font-family: "Cinzel", serif;
}

/* =========================================================
   BUTTONS
   ========================================================= */
#register button,
#login button {
    background-color: #1a0000;
    color: #ffd700;

    padding: 12px 20px;
    border: 2px solid #ffd700;
    border-radius: 6px;

    cursor: pointer;
    font-family: "Cinzel", serif;
    font-weight: bold;
    letter-spacing: 0.5px;
    text-transform: uppercase;

    transition: all 0.3s ease;
}

#register button:hover,
#login button:hover {
    background-color: #330000;
    color: #fffbe6;
    border-color: #fffbe6;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
}

#register button:active,
#login button:active {
    transform: scale(0.97);
}

/* Disabled buttons */
#register button:disabled,
#login button:disabled {
    background-color: #333;
    color: #666;
    cursor: not-allowed;
    border-color: #444;
}

/* Secondary button */
button.secondary {
    background-color: #222;
    color: #e0c97b;
    border: 2px solid #e0c97b;
}

button.secondary:hover {
    background-color: #330000;
    color: #fffbe6;
    border-color: #fffbe6;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

button.secondary:disabled {
    background-color: #333;
    color: #666;
    border-color: #444;
}

/* Button row */
.button-container {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

/* Links */
#register .container a,
#login .container a {
    color: #ffd700;
    text-decoration: none;
    transition: color 0.3s ease;
}

#register .container a:hover,
#login .container a:hover {
    color: #fffbe6;
}

/* Paragraph text */
#register .para,
#login .para {
    font-size: 0.9em;
    line-height: 1.2em;
    margin: 0 auto;
    padding: 18px;
    text-align: center;
    color: #e0c97b;
}

/* =========================================================
   FOOTER
   ========================================================= */
footer {
    background-color: #140000;
    color: #ffd700;
    padding: 10px;
    text-align: center;
    position: fixed;
    bottom: 0;
    width: 100%;
    border-top: 1px solid #ffd700;
    font-family: "Cinzel", serif;
}

footer a {
    color: #ffd700;
    text-decoration: none;
}

footer a:hover {
    color: #fffbe6;
}

/* =========================================================
   INDEX PAGE + GOOEY ANIMATION
   ========================================================= */
#index h1 {
    margin: 0;
    font-weight: bold;
    font-size: clamp(80px, 15vw, 240px);
    color: #ffd700;
    text-shadow: 2px 2px 10px #000;
    font-family: "Cinzel", serif;
}

body#index {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

#index .goo {
    position: relative;
    margin: 0 auto;
    filter: url(#goo);
}

.goo > h1 {
    font-family: Arial, "Times New Roman", Times, serif !important;
    color: #ffd700;
}

/* Drops */
#index .drop {
    opacity: 0;
    width: 30px;
    height: 40px;
    background: #ffd700;
    border-radius: 1000px;
    position: absolute;
    border: 2px solid #ffd700;
    border-top: none;
    top: 170px;
    animation: drip linear infinite;
}

/* Randomized drop variations */
#index .drop:nth-child(1) { left: 50px; animation-duration: 12s; animation-delay: 0s; }
#index .drop:nth-child(2) { left: 120px; animation-duration: 14s; animation-delay: 1s; }
#index .drop:nth-child(3) { left: 207px; animation-duration: 10s; animation-delay: 3s; }
#index .drop:nth-child(4) { left: 260px; animation-duration: 13s; animation-delay: 0.5s; }
#index .drop:nth-child(5) { left: 350px; animation-duration: 15s; animation-delay: 2s; }
#index .drop:nth-child(6) { left: 415px; animation-duration: 11s; animation-delay: 4s; }
#index .drop:nth-child(7) { left: 510px; animation-duration: 14s; animation-delay: 1.5s; }
#index .drop:nth-child(8) { left: 560px; animation-duration: 13s; animation-delay: 3.5s; }
#index .drop:nth-child(9) { left: 630px; animation-duration: 12s; animation-delay: 2.5s; }

/* =========================================================
   ANIMATIONS
   ========================================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes drip {
    0% {
        opacity: 0;
        transform: translateY(0);
    }
    25% {
        opacity: 1;
        transform: translateY(30px);
    }
    50%, 100% {
        transform: translateY(110vh);
    }
}



