body {
    background: linear-gradient(135deg, #6b5b9c 0%, #4a3f6e 50%, #2b1c4c 100%);
    font-family: 'Nunito', sans-serif;
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

#loginbox {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    width: 90%;
    max-width: 1200px;
    min-height: 600px;
    display: flex;
    overflow: hidden;
}

#loginbox {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    width: 90%;
    max-width: 1200px;
    min-height: 600px;
    display: flex;
    overflow: hidden;
}

@media (max-width: 768px) {
    #loginbox {
        flex-direction: column;
        min-height: auto;
        margin: 20px;
        width: auto;
    }

    .space-theme {
        padding: 20px;
        min-height: 200px;
    }

    .space-theme img {
        max-width: 150px;
    }

    .login-form {
        padding: 30px 20px;
    }

    .login-title {
        font-size: 24px;
        margin-bottom: 16px;
    }

    .welcome-text {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .form-control {
        font-size: 14px;
        padding: 10px 14px;
    }

    .btn-sign-in,
    .google-sign-in {
        padding: 12px;
        font-size: 14px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    #loginbox {
        width: 95%;
        min-height: 500px;
    }

    .login-form {
        padding: 40px 30px;
    }

    .space-theme {
        padding: 30px;
    }
}

.space-theme {
    flex: 1;
    background: #2b1c4c;
    padding: 40px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-form {
    flex: 1;
    padding: 60px;
    background: #fff;
}

.login-title {
    font-size: 32px;
    color: #2b1c4c;
    margin-bottom: 24px;
    font-weight: 700;
}

.welcome-text {
    color: #666;
    margin-bottom: 40px;
}

.form-group {
    margin-bottom: 24px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: #2b1c4c;
    box-shadow: 0 0 0 2px rgba(43,28,76,0.2);
    outline: none;
}

.btn-sign-in {
    width: 100%;
    padding: 14px;
    background: #2b1c4c;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-sign-in:hover {
    background: #3d2870;
}

.google-sign-in {
    width: 100%;
    padding: 14px;
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.google-sign-in:hover {
    background: #f8f8f8;
}

.forgot-password {
    color: #2b1c4c;
    text-decoration: none;
    font-size: 14px;
    margin-top: 16px;
    display: inline-block;
}

.forgot-password:hover {
    text-decoration: underline;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.alert-error {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #dcfce7;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}