body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background: linear-gradient(180deg, #1e1e30, #2a2a44); /* Lighter, softer retro tones */
    overflow-x: hidden;
}

.register-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 100px); /* Adjust for header and footer height */
    padding: 20px;
}

.register-card {
    max-width: 500px;
    width: 100%;
    background: rgba(40, 40, 60, 0.9); /* Softer background for contrast */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
    text-align: center;
    z-index: 2; /* Keep above stars */
}

.register-card h1 {
    font-size: 30px;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.7);
}

.register-form .form-group {
    margin-bottom: 20px;
    text-align: left;
}

.register-form label {
    font-size: 14px;
    color: #ddd;
    margin-bottom: 5px;
    display: block;
}

.register-form input {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    border: none;
    border-radius: 6px;
    margin-top: 5px;
    background: #444b6c;
    color: #fff;
    outline: none;
}

.register-form input:focus {
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.7);
}

.register-btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    background: linear-gradient(90deg, #ff0080, #ff8000);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.register-btn:hover {
    background: linear-gradient(90deg, #ff8000, #ff0080);
}

.error-messages, .success-message {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
}

.error-messages p {
    color: #ff5555;
    font-weight: bold;
}

.success-message p {
    color: #55ff55;
    font-weight: bold;
}

/* Retro Stars Background */
#retrobg-stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0; /* Ensure it's in the background */
}

.retrobg-star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    width: 3px;
    height: 3px;
    top: calc(var(--star-y, 0) * 100%); /* Random placement vertically */
    left: calc(var(--star-x, 0) * 100%); /* Random placement horizontally */
    animation: twinkling 3s infinite ease-in-out;
}

@keyframes twinkling {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
}
.register-logo {
    display: block;
    margin: 0 auto 20px; /* Center the logo and add space below */
    width: 120px; /* Adjust the width to make it smaller */
    height: auto; /* Maintain aspect ratio */
}

