/* Global Styles */
body {
    font-family: 'Arial', sans-serif;
    background-color: #0D0D0D;
    color: #E0E0E0;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    animation: fadeIn 1.5s ease-out;
}

.main {
    background: #1A1A1A;
    padding: 40px;
    border-radius: 10px;
    width: 400px;
    box-shadow: 0px 0px 10px rgba(0, 200, 200, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    border: 1px solid #00CCCC;
    opacity: 0;
    transform: scale(0.5);
    animation: fadeInScale 1s ease-out forwards;
}

/* Logo Section */
.Logo_main {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeInDown 1.2s ease-out;
    width: 75%; /* Set width to 75% of container */
}

.company-logo {
    width: 100%; /* Logo fills 100% of the .Logo_main width (75% of .main) */
    height: auto;
    animation: pulse 2s infinite alternate;
}

.company-name {
    font-size: 1.8em;
    color: #00CCCC;
    letter-spacing: 2px;
    margin-top: 10px;
    animation: glowText 1.5s ease-in-out infinite alternate;
    text-align: center;
}

/* Login Form Styles */
.login {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    align-items: center;
}

.common {
    padding: 12px 15px;
    border: 1px solid #00CCCC;
    border-radius: 5px;
    background: #262626;
    color: #E0E0E0;
    font-size: 1em;
    transition: all 0.3s ease;
    animation: fadeInUp 1.2s ease-out;
    width: 100%;
}

.common:focus {
    outline: none;
    border-color: #009999;
    box-shadow: 0 0 8px rgba(0, 153, 153, 0.5);
}

/* Button Holder Row */
.btnholder {
    display: flex;
    gap: 10px;
    width: 100%;
    justify-content: space-between;
}

.submit {
    background: linear-gradient(135deg, #00CCCC, #009999);
    color: #0D0D0D;
    font-weight: bold;
    cursor: pointer;
    font-size: 1.1em;
    border: none;
    padding: 12px;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
    transition: color 0.3s ease, background 0.3s ease;
    box-shadow: 0 0 8px rgba(0, 204, 204, 0.3), 0 0 12px rgba(0, 204, 204, 0.15), 0 0 24px rgba(0, 204, 204, 0.1);
    animation: glowButton 1.5s ease-in-out infinite alternate;
    width: 48%; /* Each button takes up 48% of row */
}

.submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 200%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: transform 0.6s ease;
    transform: skewX(-30deg);
    transform-origin: right;
}

.submit:hover {
    color: #FFFFFF;
    background: linear-gradient(135deg, #009999, #007777);
    box-shadow: 0 0 12px rgba(0, 153, 153, 0.5), 0 0 24px rgba(0, 153, 153, 0.3), 0 0 36px rgba(0, 153, 153, 0.2);
}

.submit:hover::before {
    transform: translateX(100%) skewX(-30deg);
}

.submit:active {
    background: linear-gradient(135deg, #007777, #005555);
}

/* New User Sign Up Link */
.newUser {
    font-size: 0.9em;
    color: #B0B0B0;
    text-align: center;
    animation: fadeInUp 1.5s ease-out;
}

.signup-link {
    color: #00CCCC;
    text-decoration: none;
    transition: color 0.3s ease;
}

.signup-link:hover {
    color: #009999;
}

/* Animations */
@keyframes pulse {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.05);
    }
}

@keyframes glowText {
    from {
        color: #00CCCC;
    }
    to {
        color: #009999;
    }
}

@keyframes glowButton {
    from {
        box-shadow: 0 0 8px rgba(0, 204, 204, 0.3), 0 0 15px rgba(0, 204, 204, 0.15), 0 0 30px rgba(0, 204, 204, 0.1);
    }
    to {
        box-shadow: 0 0 12px rgba(0, 153, 153, 0.5), 0 0 24px rgba(0, 153, 153, 0.3), 0 0 36px rgba(0, 153, 153, 0.2);
    }
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media screen and (max-width: 700px) {
    body {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100vh;
    }

    .main {
        width: 90%;
        max-width: 400px;
        min-height: 60vh;
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 0 8px rgba(0, 200, 200, 0.3);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center; /* Center elements vertically */
    }

    .company-logo {
        width: 100%; /* Adjusted for mobile screens */
    }

    .company-name {
        font-size: 1.5em;
    }

    .login {
        gap: 12px;
    }

    .common {
        padding: 10px;
        font-size: 0.9em;
    }

    .submit {
        font-size: 1em;
    }
}
