/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: url('alex_id_BG.jpg') no-repeat center center fixed;
    background-size: cover;
    font-family: 'Courier New', Courier, monospace;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* Matrix canvas */
#matrix-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Loading screen styles */
.loading-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    z-index: 10;
    display: none;
}

/* 3D Login Box */
.login-box {
    position: relative;
    width: 300px;
    padding: 30px;
    background: rgba(0, 0, 0, 0.9);
    box-shadow: 0 15px 25px rgba(255, 0, 0, 0.5);
    border-radius: 10px;
    text-align: center;
    animation: pulse 2s infinite alternate;
    transform: perspective(500px) rotateX(10deg); /* 3D effect */
}

/* Pulse Effect */
@keyframes pulse {
    0% { box-shadow: 0 0 10px #ff0000, 0 0 40px #ff0000; }
    100% { box-shadow: 0 0 20px #ff0000, 0 0 60px #ff0000; }
}

/* Glitch Text for Title */
.login-box h2.glitch {
    color: #ff0000;
    font-size: 26px;
    letter-spacing: 5px;
    margin-bottom: 30px;
    text-transform: uppercase;
    position: relative;
    animation: glitch 1.5s infinite alternate;
}

/* Glitch Effect */
@keyframes glitch {
    0% { text-shadow: 2px 2px #ff5555, -2px -2px #ff0000; }
    50% { text-shadow: -2px -2px #ff5555, 2px 2px #ff0000; }
    100% { text-shadow: 2px 2px #ff5555, -2px -2px #ff0000; }
}

/* Input Boxes */
.login-box .user-box {
    position: relative;
    margin-bottom: 30px;
}

.login-box .user-box input {
    width: 100%;
    padding: 10px 0;
    font-size: 16px;
    color: #fff;
    border: none;
    outline: none;
    background: transparent;
    border-radius: 25px; /* Round corners */
    padding: 10px 20px; /* Padding */
    background-color: rgba(255, 0, 0, 0.1); /* Light red background */
    border: 2px solid #ff5555; /* Border */
}

.login-box .user-box label {
    position: absolute;
    top: -25px;
    left: 20px;
    font-size: 16px;
    color: #ff0000;
    pointer-events: none;
    transition: 0.5s;
    font-weight: bold;
}

/* Access Button */
.login-box a {
    position: relative;
    display: inline-block;
    padding: 15px 30px; /* Increased padding */
    color: #ff0000;
    font-size: 16px;
    text-decoration: none;
    text-transform: uppercase;
    border-radius: 50px; /* Make the button round */
    background-color: rgba(255, 0, 0, 0.1); /* Light red background */
    border: 2px solid #ff5555; /* Border */

/* Pulse Animation */
@keyframes pulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

/* Error Message Animation */
#error-message {
    color: #ff0000;
    font-size: 16px;
    margin-top: 20px;
    display: none;
    text-transform: uppercase;
    letter-spacing: 2px;
}
