:root {
    --text-offset-top: 3%; 
}

.loginBody {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100vh;
    background-color: black;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
}

/* Separate logo image container to appear above matrix effect */
.loginBody::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/bchex1.png');
    background-position: center calc(50% - 100px);
    background-repeat: no-repeat;
    background-size: auto 50%;
    z-index: 1;
    pointer-events: none;
}

.welcome-message {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 3em;
    color: white;
    margin-top: var(--text-offset-top);
    text-align: center;
    border: 2px solid gray;
    border-radius: 15px;
    padding: 10px 20px;
    display: inline-block;
}

.bchex-text {
    color: #003366;
}

.matrix-text {
    color: #99cc33;
}

.error-message {
    font-size: 1em;
    color: white;
    margin-top: var(--text-offset-top);
    text-align: center;
}

.email-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    position: relative;
    z-index: 10;
}

.email-form input[type="email"] {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: none;
    font-size: 16px;
    text-align: center;
}

.email-form .loginBtn {
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    font-size: 16px;
    cursor: pointer;
}
.gobackLink {
    color: white;  
}

/* Matrix Rain Effect Integration */
#matrix-canvas {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none !important;
    z-index: 0 !important;
}

/* Ensure login elements appear above the matrix rain and logo */
.loginBody > * {
    position: relative;
    z-index: 10;
}

.welcome-message {
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10;
}

.email-form input[type="email"],
.email-form .loginBtn {
    background-color: rgba(255, 255, 255, 0.95);
}

.error-message {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}
