/* app/static/styles/loginPage-main.css */

/* ----------------------------
   RESET AND BASE STYLES
-------------------------------*/

/* Remove default margin and padding, set box-sizing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Set base font and background styles for body */
body,
html {
    width: 100%;
    height: 100%;
    font-family: 'Orbitron', sans-serif;
    overflow-x: hidden;
    /* Prevent horizontal scrolling */
}

/* ----------------------------
   BACKGROUND IMAGE/VIDEO STYLES
-------------------------------*/

/* Container for the background image or video */
.background-image {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    overflow: hidden;
    background-color: #1A1A1D;
}

/* Video element styling to cover the entire background */
.background-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Use hardware acceleration */
    will-change: transform;
}

/* Optimize video playback on mobile devices */
@media (max-width: 844px) {
    .background-image video {
        /* Lower video quality or use a lighter version */
        filter: brightness(0.8);
    }
}

/* ----------------------------
   LOGIN PAGE STYLES
-------------------------------*/

/* Container for the Login Page */
.LoginPage_LoginContainer {
    background: rgba(255, 255, 255, 0.3);
    width: 90%;
    max-width: 400px;
    margin: 14px auto;
    padding: 14px;
    border-radius: 8px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.7);
    transition: transform 0.2s, box-shadow 0.2s;
    /* Use hardware acceleration */
    will-change: transform, box-shadow;
}

/* Login Heading Styling */
.LoginPage_LoginContainer h1 {
    color: #FFD700;
    text-align: center;
    margin-bottom: 15px;
    font-size: 26px;
    text-shadow: 0px 0px 5px rgba(255, 215, 0, 0.8);
}

/* Form Group Styling */
.LoginPage_FormGroup {
    margin-bottom: 10px;
}

/* Label Styling within Form Groups */
.LoginPage_FormGroup label {
    display: block;
    color: #FFFFFF;
    font-size: 16px;
    text-shadow: 0px 0px 3px rgba(255, 255, 255, 0.8);
}

/* Input Fields Styling */
.LoginPage_Login_Input[type="text"],
.LoginPage_Login_Input[type="email"],
.LoginPage_Login_Input[type="password"] {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #FFFFFF;
    text-shadow: 0px 0px 2px rgba(255, 255, 255, 0.8);
}

/* Submit Button Styling */
.LoginPage_Button {
    width: 100%;
    padding: 12px;
    font-size: 18px;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.7), rgba(0, 123, 255, 1));
    border: 2px solid #007BFF;
    text-shadow: 0px 0px 5px rgba(0, 123, 255, 0.9);
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 10px;
    color: #FFFFFF;
    text-transform: uppercase;
    font-weight: bold;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.7);
    transition: transform 0.2s, box-shadow 0.2s;
    /* Use hardware acceleration */
    will-change: transform, box-shadow;
}

/* Submit Button Hover Effect */
.LoginPage_Button:hover {
    transform: scale(1.05);
    box-shadow: 0px 0px 20px rgba(0, 123, 255, 0.8);
}

/* ----------------------------
   FOOTER TEXT STYLES
-------------------------------*/

/* Container for the Footer Text */
.footer-text {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 14px;
    padding: 20px;
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
    text-shadow: 0px 0px 3px rgba(255, 255, 255, 0.8);
}

/* Highlighted Text Styling within Footer */
.highlight {
    font-size: 14px;
    font-weight: bold;
    color: #FFD700;
    text-shadow: 0px 0px 5px rgba(255, 215, 0, 0.8);
}

/* Paragraph Styling within Footer Text */
.footer-text p {
    margin-bottom: 10px;
}

/* ----------------------------
   FLASH MESSAGES STYLES
-------------------------------*/

/* Flash Messages Container Styling */
.flashes {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(50, 50, 50, 0.9);
    color: #fff;
    padding: 15px 30px;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 1000;
    text-align: center;
    width: 350px;
    font-weight: bold;
    font-size: 1rem;
    animation: fade-in-out 5s ease-in-out;
    /* Use hardware acceleration */
    will-change: opacity, transform;
}

/* Keyframes for fade-in-out animation */
@keyframes fade-in-out {

    0%,
    100% {
        opacity: 0;
    }

    10%,
    90% {
        opacity: 1;
    }
}

/* Paragraph Styling within Flash Messages */
.flashes p {
    font-size: 16px;
}

/* Fade-Out Animation Class */
.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease-out;
}