@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #0e1525;
    /* Dark Blue Background */
    background-image: radial-gradient(circle at center, #1c2538 0%, #0e1525 100%);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    color: #fff;
}

.main-box {
    width: 900px;
    height: 550px;
    background-color: #151c2f;
    /* Deep Slate Box */
    border-radius: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    display: flex;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(59, 130, 246, 0.1);
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Left Side - Content & Image */
.left-content {
    width: 55%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    position: relative;
    z-index: 2;
}

.left-content h1 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.left-content h1 span {
    color: #3b82f6;
    /* Bright Blue */
}

.astronaut-img {
    width: 220px;
    align-self: center;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 10px 10px rgba(59, 130, 246, 0.2));
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Right Side - Login Form */
.right-content {
    width: 45%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
}

.login-card {
    width: 320px;
    background-color: #1c2333;
    /* Matches original snippet card color */
    border-radius: 20px;
    padding: 35px 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h2 {
    color: #3b82f6;
    /* Changed from white to Blue */
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    color: #94a3b8;
    font-size: 13px;
    display: block;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    background-color: #2b3548;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 12px 15px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: 0.3s;
}

.form-control:focus {
    background-color: #334155;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btn-login {
    width: 100%;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.alert {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
    text-align: center;
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Decoration */
.circle-deco {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

.circle-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    top: -100px;
    left: -100px;
}

/* Mobile Responsiveness */
@media (max-width: 950px) {
    .main-box {
        width: 90%;
        height: auto;
        flex-direction: column;
    }

    .left-content {
        width: 100%;
        text-align: center;
        padding-bottom: 0;
    }

    .astronaut-img {
        width: 180px;
    }

    .right-content {
        width: 100%;
        padding: 30px;
    }

    .login-card {
        width: 100%;
    }
}