/* --- Global Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

/* --- Body Background --- */
body {
    background: linear-gradient(135deg, #0a0f24, #1b2a4a);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    overflow: hidden;
}
.background {
    position: fixed;
    inset: 0;

    /* Show the whole image, no cropping */
    background: url('../images/background.png') center/contain no-repeat;

    /* Fill the side borders with a soft gradient that matches your theme */
    background-color: #0a0f24;

    /* Make the image clearer and richer */
    filter: brightness(0.95) saturate(1.15);

    /* Add slight zoom for depth without cropping */
    transform: scale(1.03);

    z-index: 0;
}








/* --- Panel Container --- */
.panel-container {
    width: 350px;
    height: 380px; 
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

/* --- Panels --- */
.panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.4s ease;
    pointer-events: none;
}

.panel.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

/* --- Headings --- */
.panel h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 26px;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.4);
}

/* --- Inputs --- */
.panel input {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: 0.3s;
}

.panel input:focus {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.4);
}

/* --- Buttons --- */
.panel button {
    width: 100%;
    padding: 12px;
    margin-top: 12px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #00eaff, #0077ff);
    color: #000;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

.panel button:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.6);
}

/* --- Links --- */
.link {
    margin-top: 12px;
    text-align: center;
    cursor: pointer;
    color: #00eaff;
    font-size: 14px;
    transition: 0.3s;
}

.link:hover {
    color: #fff;
    text-shadow: 0 0 10px #00eaff;
    transform: scale(1.05);
}

/* --- Message Box --- */
#messageBox {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    backdrop-filter: blur(10px);
    color: #fff;
    opacity: 0;
    transition: 0.4s ease;
    pointer-events: none;
}

#messageBox.success {
    background: rgba(0, 255, 150, 0.3);
    box-shadow: 0 0 15px rgba(0, 255, 150, 0.5);
    opacity: 1;
}

#messageBox.error {
    background: rgba(255, 0, 80, 0.3);
    box-shadow: 0 0 15px rgba(255, 0, 80, 0.5);
    opacity: 1;
}
